From 13724f032e127fbaf6d47bb2b6ba8933df23ffe8 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 8 Apr 2004 13:11:04 +0000 Subject: 2.6 sysfs patches + stubs in drmP.h for 2.4 compatibility --- linux-core/drmP.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'linux-core/drmP.h') diff --git a/linux-core/drmP.h b/linux-core/drmP.h index ac54abb5..c61bac1d 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -243,6 +243,18 @@ static inline unsigned iminor(struct inode *inode) #define old_encode_dev(x) (x) +struct class_simple; +struct device; + +static inline void *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){}; + +static inline void class_simple_destroy(struct class_simple *cs){}; + +static inline struct class_simple *class_simple_create(struct module *owner, char *name) { return NULL; } + #endif #ifndef REMAP_PAGE_RANGE_5_ARGS -- cgit v1.2.3