Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296371
b: refs/heads/master
c: 65b539b
h: refs/heads/master
i:
  296369: 7657b65
  296367: a36cd47
v: v3
  • Loading branch information
Russell King committed Feb 18, 2012
1 parent 4dbed42 commit 968c787
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 7655b2ac9ed3206fb916357b8b1065f08324507d
refs/heads/master: 65b539bb900f64b9a3f9b761bf0f735dc84e6b70
8 changes: 4 additions & 4 deletions trunk/drivers/mfd/ucb1x00-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ static int ucb1x00_add_dev(struct ucb1x00 *ucb, struct ucb1x00_driver *drv)
ret = drv->add(dev);

if (ret == 0) {
list_add(&dev->dev_node, &ucb->devs);
list_add(&dev->drv_node, &drv->devs);
list_add_tail(&dev->dev_node, &ucb->devs);
list_add_tail(&dev->drv_node, &drv->devs);
} else {
kfree(dev);
}
Expand Down Expand Up @@ -605,7 +605,7 @@ static int ucb1x00_probe(struct mcp *mcp)

INIT_LIST_HEAD(&ucb->devs);
mutex_lock(&ucb1x00_mutex);
list_add(&ucb->node, &ucb1x00_devices);
list_add_tail(&ucb->node, &ucb1x00_devices);
list_for_each_entry(drv, &ucb1x00_drivers, node) {
ucb1x00_add_dev(ucb, drv);
}
Expand Down Expand Up @@ -663,7 +663,7 @@ int ucb1x00_register_driver(struct ucb1x00_driver *drv)

INIT_LIST_HEAD(&drv->devs);
mutex_lock(&ucb1x00_mutex);
list_add(&drv->node, &ucb1x00_drivers);
list_add_tail(&drv->node, &ucb1x00_drivers);
list_for_each_entry(ucb, &ucb1x00_devices, node) {
ucb1x00_add_dev(ucb, drv);
}
Expand Down

0 comments on commit 968c787

Please sign in to comment.