Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245342
b: refs/heads/master
c: e1866b3
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed May 17, 2011
1 parent f5fc4a2 commit bba7e07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: ee940d8dccd899aa1777ea84da3d9cd04b1d2e8e
refs/heads/master: e1866b33b1e89f077b7132daae3dfd9a594e9a1a
6 changes: 3 additions & 3 deletions trunk/drivers/base/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,7 @@ static void __device_release_driver(struct device *dev)

drv = dev->driver;
if (drv) {
pm_runtime_get_noresume(dev);
pm_runtime_barrier(dev);
pm_runtime_get_sync(dev);

driver_sysfs_remove(dev);

Expand All @@ -326,6 +325,8 @@ static void __device_release_driver(struct device *dev)
BUS_NOTIFY_UNBIND_DRIVER,
dev);

pm_runtime_put_sync(dev);

if (dev->bus && dev->bus->remove)
dev->bus->remove(dev);
else if (drv->remove)
Expand All @@ -338,7 +339,6 @@ static void __device_release_driver(struct device *dev)
BUS_NOTIFY_UNBOUND_DRIVER,
dev);

pm_runtime_put_sync(dev);
}
}

Expand Down

0 comments on commit bba7e07

Please sign in to comment.