Commit b2efc82c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix tlan.c for !PCI

From: Adrian Bunk <bunk@fs.tum.de>

drivers/net/tlan.c: In function `tlan_remove_one':
drivers/net/tlan.c:449: warning: implicit declaration of function `pci_release_regions'
parent b618744f
......@@ -446,7 +446,9 @@ static void __devexit tlan_remove_one( struct pci_dev *pdev)
pci_free_consistent(priv->pciDev, priv->dmaSize, priv->dmaStorage, priv->dmaStorageDMA );
}
#ifdef CONFIG_PCI
pci_release_regions(pdev);
#endif
free_netdev( dev );
......@@ -673,8 +675,10 @@ static int __devinit TLan_probe1(struct pci_dev *pdev,
err_out_free_dev:
free_netdev(dev);
err_out_regions:
#ifdef CONFIG_PCI
if (pdev)
pci_release_regions(pdev);
#endif
err_out:
if (pdev)
pci_disable_device(pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment