]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Add a klist to struct device_driver for the devices bound to it.
authormochel@digitalimplant.org <mochel@digitalimplant.org>
Mon, 21 Mar 2005 20:25:36 +0000 (12:25 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Jun 2005 22:15:16 +0000 (15:15 -0700)
commit94e7b1c5ff2055571703e38b059afffe17658432
tree469dbd920087ec62acd88b4985437a78c6786c0e
parent38fdac3cdce276554b4484a41f8ec2daf81cb2ff
[PATCH] Add a klist to struct device_driver for the devices bound to it.

- Use it in driver_for_each_device() instead of the regular list_head and stop using
  the bus's rwsem for protection.
- Use driver_for_each_device() in driver_detach() so we don't deadlock on the
  bus's rwsem.
- Remove ->devices.
- Move klist access and sysfs link access out from under device's semaphore, since
  they're synchronized through other means.

Signed-off-by: Patrick Mochel <mochel@digitalimplant.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c
drivers/base/dd.c
drivers/base/driver.c
include/linux/device.h