提交 1e2cfeef 编写于 作者: D David S. Miller

Revert "tc35815: fix iomap leak"

This reverts commit b31fb868.

pcim_*() managed drivers do not need explicit resource
releasing like this.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 28bd620c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册