Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25764
b: refs/heads/master
c: 3722540
h: refs/heads/master
v: v3
  • Loading branch information
Ryan Wilson authored and Greg Kroah-Hartman committed Apr 14, 2006
1 parent b422bc5 commit a94cad3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a14388904ca67197c9a531dba2358d8131697865
refs/heads/master: 372254018eb1b65ee69210d11686bfc65c8d84db
5 changes: 5 additions & 0 deletions trunk/drivers/base/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ static ssize_t driver_bind(struct device_driver *drv,
up(&dev->sem);
if (dev->parent)
up(&dev->parent->sem);

if (err > 0) /* success */
err = count;
else if (err == 0) /* driver didn't accept device */
err = -ENODEV;
}
put_device(dev);
put_bus(bus);
Expand Down

0 comments on commit a94cad3

Please sign in to comment.