Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325244
b: refs/heads/master
c: 1adda49
h: refs/heads/master
v: v3
  • Loading branch information
Jens Taprogge authored and Greg Kroah-Hartman committed Sep 12, 2012
1 parent 0ad6ee3 commit a7421ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: faa75c406e7396a952c3ebedfc2b1d6f1b8d2648
refs/heads/master: 1adda49706ff832e9fc4f4bcb62d38285145307c
10 changes: 3 additions & 7 deletions trunk/drivers/staging/ipack/devices/ipoctal.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ static int ipoctal_probe(struct ipack_device *dev)
if (res)
goto out_uninst;

dev_set_drvdata(&dev->dev, ipoctal);
list_add_tail(&ipoctal->list, &ipoctal_list);
return 0;

Expand All @@ -751,14 +752,9 @@ static void __ipoctal_remove(struct ipoctal *ipoctal)
kfree(ipoctal);
}

static void ipoctal_remove(struct ipack_device *device)
static void ipoctal_remove(struct ipack_device *idev)
{
struct ipoctal *ipoctal, *next;

list_for_each_entry_safe(ipoctal, next, &ipoctal_list, list) {
if (ipoctal->dev == device)
__ipoctal_remove(ipoctal);
}
__ipoctal_remove(dev_get_drvdata(&idev->dev));
}

static DEFINE_IPACK_DEVICE_TABLE(ipoctal_ids) = {
Expand Down

0 comments on commit a7421ab

Please sign in to comment.