Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64255
b: refs/heads/master
c: 59d9445
h: refs/heads/master
i:
  64253: 15d7cad
  64251: a26ad43
  64247: 50d495b
  64239: bd5ac28
  64223: 1699a88
  64191: 487c2bd
  64127: a444e32
  63999: 52f3550
v: v3
  • Loading branch information
Evgeniy Polyakov authored and Linus Torvalds committed Aug 23, 2007
1 parent a515d63 commit 4024b62
Show file tree
Hide file tree
Showing 2 changed files with 7 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: a89182c76e54134081cfec6409df06731c5cb98f
refs/heads/master: 59d9445e851976d973a5a4009f80a3d55959d231
10 changes: 6 additions & 4 deletions trunk/drivers/w1/w1_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,22 +170,24 @@ void __w1_remove_master_device(struct w1_master *dev)

void w1_remove_master_device(struct w1_bus_master *bm)
{
struct w1_master *dev = NULL;
struct w1_master *dev, *found = NULL;

list_for_each_entry(dev, &w1_masters, w1_master_entry) {
if (!dev->initialized)
continue;

if (dev->bus_master->data == bm->data)
if (dev->bus_master->data == bm->data) {
found = dev;
break;
}
}

if (!dev) {
if (!found) {
printk(KERN_ERR "Device doesn't exist.\n");
return;
}

__w1_remove_master_device(dev);
__w1_remove_master_device(found);
}

EXPORT_SYMBOL(w1_add_master_device);
Expand Down

0 comments on commit 4024b62

Please sign in to comment.