aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tc35815.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-07-13 17:20:58 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-13 17:20:58 -0400
commit1e2cfeef060fa0270f9a2d66b1218c12c05062e0 (patch)
treee5bea789f7d3523452dbef6b710bf53cc6c20c6f /drivers/net/tc35815.c
parent28bd620c7a1244e59459d6293ca11f162e0a67b9 (diff)
Revert "tc35815: fix iomap leak"
This reverts commit b31fb86815153be3bc94e8ffb9dbf6e9d7694b2d. pcim_*() managed drivers do not need explicit resource releasing like this. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tc35815.c')
-rw-r--r--drivers/net/tc35815.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c
index 99afa5c47bec..be08b75dbc15 100644
--- a/drivers/net/tc35815.c
+++ b/drivers/net/tc35815.c
@@ -854,7 +854,7 @@ static int __devinit tc35815_init_one(struct pci_dev *pdev,
854 854
855 rc = register_netdev(dev); 855 rc = register_netdev(dev);
856 if (rc) 856 if (rc)
857 goto err_out_iounmap; 857 goto err_out;
858 858
859 memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len); 859 memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
860 printk(KERN_INFO "%s: %s at 0x%lx, %pM, IRQ %d\n", 860 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,
872 872
873err_out_unregister: 873err_out_unregister:
874 unregister_netdev(dev); 874 unregister_netdev(dev);
875err_out_iounmap:
876 pcim_iounmap_regions(pdev, 1 << 1);
877err_out: 875err_out:
878 free_netdev(dev); 876 free_netdev(dev);
879 return rc; 877 return rc;