提交 ab71c6f0 编写于 作者: S Stefan Richter 提交者: Greg Kroah-Hartman

driver core: fix kernel doc of device_release_driver

Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 1f5681aa
...@@ -281,17 +281,10 @@ int driver_attach(struct device_driver * drv) ...@@ -281,17 +281,10 @@ int driver_attach(struct device_driver * drv)
return bus_for_each_dev(drv->bus, NULL, drv, __driver_attach); return bus_for_each_dev(drv->bus, NULL, drv, __driver_attach);
} }
/** /*
* device_release_driver - manually detach device from driver.
* @dev: device.
*
* Manually detach device from driver.
*
* __device_release_driver() must be called with @dev->sem held. * __device_release_driver() must be called with @dev->sem held.
* When called for a USB interface, @dev->parent->sem must be held * When called for a USB interface, @dev->parent->sem must be held as well.
* as well.
*/ */
static void __device_release_driver(struct device * dev) static void __device_release_driver(struct device * dev)
{ {
struct device_driver * drv; struct device_driver * drv;
...@@ -317,6 +310,13 @@ static void __device_release_driver(struct device * dev) ...@@ -317,6 +310,13 @@ static void __device_release_driver(struct device * dev)
} }
} }
/**
* device_release_driver - manually detach device from driver.
* @dev: device.
*
* Manually detach device from driver.
* When called for a USB interface, @dev->parent->sem must be held.
*/
void device_release_driver(struct device * dev) void device_release_driver(struct device * dev)
{ {
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册