diff options
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r-- | drivers/base/base.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h index 05472360f6a..3b0f395552d 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h | |||
@@ -27,6 +27,14 @@ struct bus_type_private { | |||
27 | struct bus_type *bus; | 27 | struct bus_type *bus; |
28 | }; | 28 | }; |
29 | 29 | ||
30 | struct driver_private { | ||
31 | struct kobject kobj; | ||
32 | struct klist klist_devices; | ||
33 | struct klist_node knode_bus; | ||
34 | struct module_kobject *mkobj; | ||
35 | struct device_driver *driver; | ||
36 | }; | ||
37 | #define to_driver(obj) container_of(obj, struct driver_private, kobj) | ||
30 | 38 | ||
31 | /* initialisation functions */ | 39 | /* initialisation functions */ |
32 | extern int devices_init(void); | 40 | extern int devices_init(void); |