diff options
author | mochel@digitalimplant.org <mochel@digitalimplant.org> | 2005-03-21 10:52:54 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 15:15:13 -0700 |
commit | 07e4a3e27fe414980ddc85a358e5a56abc48b363 (patch) | |
tree | eb32858e7facf8b24a2f0fc2d4e829d6ee715c09 /drivers/base/base.h | |
parent | af70316af182f4716cc5eec7e0d27fc731d164bd (diff) | |
download | op-kernel-dev-07e4a3e27fe414980ddc85a358e5a56abc48b363.zip op-kernel-dev-07e4a3e27fe414980ddc85a358e5a56abc48b363.tar.gz |
[PATCH] Move device/driver code to drivers/base/dd.c
This relocates the driver binding/unbinding code to drivers/base/dd.c. This is done
for two reasons: One, it's not code related to the bus_type itself; it uses some from
that, some from devices, and some from drivers. And Two, it will make it easier to do
some of the upcoming lock removal on that code..
Signed-off-by: Patrick Mochel <mochel@digitalimplant.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r-- | drivers/base/base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h index 8d1e8bd..645f6269 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h @@ -4,6 +4,8 @@ extern void bus_remove_device(struct device * dev); extern int bus_add_driver(struct device_driver *); extern void bus_remove_driver(struct device_driver *); +extern void driver_detach(struct device_driver * drv); + static inline struct class_device *to_class_dev(struct kobject *obj) { return container_of(obj, struct class_device, kobj); |