summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-05-02 13:03:51 +0000
committerDave Airlie <airlied@linux.ie>2004-05-02 13:03:51 +0000
commita9d2438999b79419772a00d0deb1caab30334765 (patch)
tree928605543d4929a11257baa1a48970077757955e
parenta3612f450be04ca73e5acb3afc4eff65194612df (diff)
fix 2.4 build
-rw-r--r--linux-core/drmP.h3
-rw-r--r--linux/drmP.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index a06086eb..2800246d 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -246,8 +246,7 @@ static inline unsigned iminor(struct inode *inode)
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;}
+#define class_simple_device_add(...) do {} while (0)
static inline void class_simple_device_remove(dev_t dev){};
diff --git a/linux/drmP.h b/linux/drmP.h
index a06086eb..2800246d 100644
--- a/linux/drmP.h
+++ b/linux/drmP.h
@@ -246,8 +246,7 @@ static inline unsigned iminor(struct inode *inode)
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;}
+#define class_simple_device_add(...) do {} while (0)
static inline void class_simple_device_remove(dev_t dev){};