projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28bd620
)
Revert "tc35815: fix iomap leak"
author
David S. Miller
<davem@davemloft.net>
Tue, 13 Jul 2010 21:20:58 +0000
(14:20 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 13 Jul 2010 21:20:58 +0000
(14:20 -0700)
This reverts commit
b31fb86815153be3bc94e8ffb9dbf6e9d7694b2d
.
pcim_*() managed drivers do not need explicit resource
releasing like this.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tc35815.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/tc35815.c
b/drivers/net/tc35815.c
index 99afa5c47bec4f4d7baef81cacaa7c5a4767271c..be08b75dbc15a3d2d6adaf8d76c6d1de83c4d362 100644
(file)
--- a/
drivers/net/tc35815.c
+++ b/
drivers/net/tc35815.c
@@
-854,7
+854,7
@@
static int __devinit tc35815_init_one(struct pci_dev *pdev,
rc = register_netdev(dev);
if (rc)
- goto err_out
_iounmap
;
+ goto err_out;
memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
printk(KERN_INFO "%s: %s at 0x%lx, %pM, IRQ %d\n",
@@
-872,8
+872,6
@@
static int __devinit tc35815_init_one(struct pci_dev *pdev,
err_out_unregister:
unregister_netdev(dev);
-err_out_iounmap:
- pcim_iounmap_regions(pdev, 1 << 1);
err_out:
free_netdev(dev);
return rc;