diff options
-rw-r--r-- | drivers/base/dd.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 3c503e1f69a2..7ac474db88c5 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c | |||
@@ -281,17 +281,10 @@ int driver_attach(struct device_driver * drv) | |||
281 | return bus_for_each_dev(drv->bus, NULL, drv, __driver_attach); | 281 | return bus_for_each_dev(drv->bus, NULL, drv, __driver_attach); |
282 | } | 282 | } |
283 | 283 | ||
284 | /** | 284 | /* |
285 | * device_release_driver - manually detach device from driver. | ||
286 | * @dev: device. | ||
287 | * | ||
288 | * Manually detach device from driver. | ||
289 | * | ||
290 | * __device_release_driver() must be called with @dev->sem held. | 285 | * __device_release_driver() must be called with @dev->sem held. |
291 | * When called for a USB interface, @dev->parent->sem must be held | 286 | * When called for a USB interface, @dev->parent->sem must be held as well. |
292 | * as well. | ||
293 | */ | 287 | */ |
294 | |||
295 | static void __device_release_driver(struct device * dev) | 288 | static void __device_release_driver(struct device * dev) |
296 | { | 289 | { |
297 | struct device_driver * drv; | 290 | struct device_driver * drv; |
@@ -317,6 +310,13 @@ static void __device_release_driver(struct device * dev) | |||
317 | } | 310 | } |
318 | } | 311 | } |
319 | 312 | ||
313 | /** | ||
314 | * device_release_driver - manually detach device from driver. | ||
315 | * @dev: device. | ||
316 | * | ||
317 | * Manually detach device from driver. | ||
318 | * When called for a USB interface, @dev->parent->sem must be held. | ||
319 | */ | ||
320 | void device_release_driver(struct device * dev) | 320 | void device_release_driver(struct device * dev) |
321 | { | 321 | { |
322 | /* | 322 | /* |