summaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.h
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-09-23 17:22:27 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-09-23 17:22:27 +0000
commit36a257cfe9e45e7a2022f19100a193eb73e30d4b (patch)
tree19a2e7f8b6711817a01305b4ab75994a75b7389c /linux-core/drm_compat.h
parent55c5e240892bb9673cce602e7deb323f29aa8031 (diff)
Remove 2.6 code that allow DRM major device number to be shared. We can add
it back later if needed. Checked DRM on both 2.4 and 2.6 to ensure that it builds and runs.
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r--linux-core/drm_compat.h29
1 files changed, 3 insertions, 26 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h
index 50e13b9a..2efa8306 100644
--- a/linux-core/drm_compat.h
+++ b/linux-core/drm_compat.h
@@ -142,32 +142,9 @@ static inline struct drm_sysfs_class *DRM(sysfs_create)(struct module *owner, ch
#define pci_pretty_name(x) x->name
#endif
-/* not used in 2.4, just makes the code compile */
-#define KOBJ_NAME_LEN 20
-struct kobject {
- char name[KOBJ_NAME_LEN];
-};
-struct cdev {
- struct kobject kobj;
- struct module *owner;
- struct file_operations *ops;
- struct list_head list;
- dev_t dev;
- unsigned int count;
-};
-static inline void cdev_del(struct cdev *cd){}
-static inline void cdev_init(struct cdev *cd, struct file_operations *fop){}
-static inline int cdev_add(struct cdev *cd, dev_t dt, unsigned u){ return 0;}
-
-static inline int register_chrdev_region(dev_t device, unsigned minor, char *name) {
- return register_chrdev(device, name, NULL);
-}
-
-static inline int unregister_chrdev_region(dev_t device, unsigned minor) {
- return unregister_chrdev(device, NULL);
-}
-
-static inline int kobject_put(struct kobject *kobj){ return 0;};
+struct drm_device;
+static inline int radeon_create_i2c_busses(struct drm_device *dev){return 0;};
+static inline void radeon_delete_i2c_busses(struct drm_device *dev){};
#endif