compatibility functions so udev support compiles on 2.4 kernels
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 29 Dec 2004 03:10:46 +0000 (03:10 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 29 Dec 2004 03:10:46 +0000 (03:10 +0000)
include/linux/device.h

index 75f5bb73c4cf8f79b73137bed9189c954ef3eb6b..f3a6d18f11b0306df75b631e74eacaf38b6203d9 100644 (file)
@@ -14,6 +14,31 @@ struct device_driver
 {
        dev_info_t name;
 };
+
+typedef void class_simple;
+
+struct device
+{
+       void *dummy;
+};
+
+static inline struct class_simple *class_simple_create(struct module *owner, char *name)
+{
+       return NULL;
+};
+
+static inline void class_simple_destroy(struct class_simple *cs)
+{};
+
+static inline struct class_device *class_simple_device_add(struct class_simple *cs, 
+       dev_t dev, struct device *device, const char *fmt, ...)
+{
+       return NULL;
+};
+
+static inline void class_simple_device_remove(dev_t dev)
+{};
+
 #else
 #include_next <linux/device.h>
 #endif