summaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorCornelia Huck2007-02-06 01:15:26 +0100
committerGreg Kroah-Hartman2007-04-27 19:57:29 +0200
commitc6a46696f97ff260a4ecce5e287f8de4b9d7fe14 (patch)
tree335de50c9868cd575f535677e430677d33cbaaa1 /include/linux/device.h
parentpowerpc: make it compile for multithread change (diff)
downloadkernel-qcow2-linux-c6a46696f97ff260a4ecce5e287f8de4b9d7fe14.tar.gz
kernel-qcow2-linux-c6a46696f97ff260a4ecce5e287f8de4b9d7fe14.tar.xz
kernel-qcow2-linux-c6a46696f97ff260a4ecce5e287f8de4b9d7fe14.zip
driver core: don't fail attaching the device if it cannot be bound
Don't fail bus_attach_device() if the device cannot be bound. If dev->driver has been specified, reset it to NULL if device_bind_driver() failed and add the device as an unbound device. As a result, bus_attach_device() now cannot fail, and we can remove some checking from device_add(). Also remove an unneeded check in bus_rescan_devices_helper(). Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
0 files changed, 0 insertions, 0 deletions