From: Cornelia Huck Date: Tue, 6 Feb 2007 00:15:26 +0000 (-0800) Subject: driver core: don't fail attaching the device if it cannot be bound X-Git-Tag: v2.6.22-rc1~1119^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6a46696f97ff260a4ecce5e287f8de4b9d7fe14;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed