summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2002-10-30 00:35:49 -0800
committerPatrick Mochel <mochel@osdl.org>2002-10-30 00:35:49 -0800
commit8de57ed6e13a1625695c016bf455ec7ebff68031 (patch)
tree43ae4db2275cec77053b702116e82e22e6f07656 /include
parent289609f07f4e96ef139af61bd2ee3d8f1592ba17 (diff)
driver model: convert drivers to use kobject and sysfs.
- add kobject to struct device_driver and register it when drivers are registered (as member's of their bus's driver subsystem). - convert driverfs callbacks to know about struct kobject. - create links from drivers' directories to devices' directories. - don't even make driverfs directories for drivers anymore.
Diffstat (limited to 'include')
-rw-r--r--include/linux/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 66d4f313a809..5ce759266658 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -123,6 +123,7 @@ struct device_driver {
atomic_t refcount;
u32 present;
+ struct kobject kobj;
struct list_head bus_list;
struct list_head class_list;
struct list_head devices;