Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 929
b: refs/heads/master
c: b2d84f0
h: refs/heads/master
i:
  927: e92eb24
v: v3
  • Loading branch information
Roman Kagan authored and Greg KH committed May 5, 2005
1 parent 9c5163f commit e049557
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 177a4324944478f2799ce4ede2797cb0f602f274
refs/heads/master: b2d84f078a8be40f5ae3b4d2ac001e2a7f45fe4f
5 changes: 2 additions & 3 deletions trunk/drivers/base/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,8 @@ void device_release_driver(struct device * dev)

static void driver_detach(struct device_driver * drv)
{
struct list_head * entry, * next;
list_for_each_safe(entry, next, &drv->devices) {
struct device * dev = container_of(entry, struct device, driver_list);
while (!list_empty(&drv->devices)) {
struct device * dev = container_of(drv->devices.next, struct device, driver_list);
device_release_driver(dev);
}
}
Expand Down

0 comments on commit e049557

Please sign in to comment.