diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-06-17 05:02:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-11 19:09:02 -0400 |
commit | ab71c6f0767bcbc618f3db51f668d5b951c00b60 (patch) | |
tree | 4912d293452bdeb1ee158ff4c8bd545e4bc9a4ae /drivers/base/dd.c | |
parent | 1f5681aae8feadd113644c9e077152416c12b75c (diff) |
driver core: fix kernel doc of device_release_driver
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/dd.c')
-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 | /* |