diff options
| author | Patrick Mochel <mochel@osdl.org> | 2002-09-16 22:24:43 -0700 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2002-09-16 22:24:43 -0700 |
| commit | 00e1d4da7ad40fdf02f01aff4c684babe1e99c61 (patch) | |
| tree | ff742a690100ab2dcb366e54f1ee1dba7c7f4022 /include | |
| parent | 6b29059af3cb8607e055c5051c608a876572cdf7 (diff) | |
| parent | 9d5f4b16c4f471d91db902d016da7fd4874a40e4 (diff) | |
drivers/base/core.c: merge fixup
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/device.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 21f789350502..ea2a790723b3 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -65,7 +65,8 @@ struct bus_type { struct driver_dir_entry device_dir; struct driver_dir_entry driver_dir; - int (*match) (struct device * dev, struct device_driver * drv); + int (*match)(struct device * dev, struct device_driver * drv); + struct device * (*add) (struct device * parent, char * bus_id); }; @@ -281,6 +282,8 @@ struct device { void *driver_data; /* data private to the driver */ u32 class_num; /* class-enumerated value */ + void * class_data; /* class-specific data */ + void *platform_data; /* Platform specific data (e.g. ACPI, BIOS data relevant to device) */ @@ -378,6 +381,9 @@ extern void put_device(struct device * dev); extern int register_sys_device(struct device * dev); extern void unregister_sys_device(struct device * dev); +/* drivers/base/platform.c */ +extern struct bus_type platform_bus; + /* drivers/base/power.c */ extern int device_suspend(u32 state, u32 level); extern void device_resume(u32 level); |
