]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/cdev.h
fs_enet: Remove unused fields in the fs_mii_bb_platform_info structure.
[linux-2.6-omap-h63xx.git] / include / linux / cdev.h
index 8da37e29cb877177208e0e51821a72a2e9c72927..fb4591977b039a80587fa79d899c2f86d632657b 100644 (file)
@@ -1,17 +1,24 @@
 #ifndef _LINUX_CDEV_H
 #define _LINUX_CDEV_H
-#ifdef __KERNEL__
+
+#include <linux/kobject.h>
+#include <linux/kdev_t.h>
+#include <linux/list.h>
+
+struct file_operations;
+struct inode;
+struct module;
 
 struct cdev {
        struct kobject kobj;
        struct module *owner;
-       struct file_operations *ops;
+       const struct file_operations *ops;
        struct list_head list;
        dev_t dev;
        unsigned int count;
 };
 
-void cdev_init(struct cdev *, struct file_operations *);
+void cdev_init(struct cdev *, const struct file_operations *);
 
 struct cdev *cdev_alloc(void);
 
@@ -23,5 +30,6 @@ void cdev_del(struct cdev *);
 
 void cd_forget(struct inode *);
 
-#endif
+extern struct backing_dev_info directly_mappable_cdev_bdi;
+
 #endif