mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Driver core: change misc class_devices to be real devices
This also ment that some of the misc drivers had to also be fixed up as they were assuming the device was a class_device. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
cd15422b9f
commit
94fbcded4e
5 changed files with 27 additions and 33 deletions
|
@ -31,15 +31,14 @@
|
|||
#define HPET_MINOR 228
|
||||
|
||||
struct device;
|
||||
struct class_device;
|
||||
|
||||
struct miscdevice {
|
||||
int minor;
|
||||
const char *name;
|
||||
const struct file_operations *fops;
|
||||
struct list_head list;
|
||||
struct device *dev;
|
||||
struct class_device *class;
|
||||
struct device *parent;
|
||||
struct device *this_device;
|
||||
};
|
||||
|
||||
extern int misc_register(struct miscdevice * misc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue