diff options
author | Dave Airlie <airlied@linux.ie> | 2004-07-11 09:58:49 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-07-11 09:58:49 +0000 |
commit | f9e2fe84700c155a744d7ae3db4ebe12d5db9b10 (patch) | |
tree | 6119e0acb49be35dc524443a2ea59fe836933002 | |
parent | 6e4bf5ead5a342426020a1d48d93b8deae2a9e73 (diff) |
fix issue in 2.4 kernels with returning NULL from this function
-rw-r--r-- | linux-core/drmP.h | 2 | ||||
-rw-r--r-- | linux/drmP.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 8d3f0325d..962b4598e 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -255,7 +255,7 @@ 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; } +static inline struct class_simple *class_simple_create(struct module *owner, char *name) { return (struct class_simple *)owner; } #ifndef pci_pretty_name #define pci_pretty_name(x) x->name diff --git a/linux/drmP.h b/linux/drmP.h index 8d3f0325d..962b4598e 100644 --- a/linux/drmP.h +++ b/linux/drmP.h @@ -255,7 +255,7 @@ 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; } +static inline struct class_simple *class_simple_create(struct module *owner, char *name) { return (struct class_simple *)owner; } #ifndef pci_pretty_name #define pci_pretty_name(x) x->name |