Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59101
b: refs/heads/master
c: ab71c6f
h: refs/heads/master
i:
  59099: e18f2f3
v: v3
  • Loading branch information
Stefan Richter authored and Greg Kroah-Hartman committed Jul 11, 2007
1 parent 07066cf commit e335cf9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f5681aae8feadd113644c9e077152416c12b75c
refs/heads/master: ab71c6f0767bcbc618f3db51f668d5b951c00b60
18 changes: 9 additions & 9 deletions trunk/drivers/base/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,17 +281,10 @@ int driver_attach(struct device_driver * drv)
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.
* When called for a USB interface, @dev->parent->sem must be held
* as well.
* When called for a USB interface, @dev->parent->sem must be held as well.
*/

static void __device_release_driver(struct device * dev)
{
struct device_driver * drv;
Expand All @@ -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)
{
/*
Expand Down

0 comments on commit e335cf9

Please sign in to comment.