Commit 9b01068c authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

PCI: remove pci_present() from drivers/net/wan/lmc/lmc_main.c

parent 0031442d
...@@ -1034,14 +1034,6 @@ int lmc_probe (struct net_device *dev) /*fold00*/ ...@@ -1034,14 +1034,6 @@ int lmc_probe (struct net_device *dev) /*fold00*/
u8 intcf = 0; u8 intcf = 0;
struct pci_dev *pdev = NULL; struct pci_dev *pdev = NULL;
/* The card is only available on PCI, so if we don't have a
* PCI bus, we are in trouble.
*/
if (!pci_present()) {
/* printk ("%s: We really want a pci bios!\n", dev->name);*/
return -1;
}
/* Loop basically until we don't find anymore. */ /* Loop basically until we don't find anymore. */
while ((pdev = pci_find_class (PCI_CLASS_NETWORK_ETHERNET << 8, pdev))) { while ((pdev = pci_find_class (PCI_CLASS_NETWORK_ETHERNET << 8, pdev))) {
if (pci_enable_device(pdev)) if (pci_enable_device(pdev))
......
...@@ -69,12 +69,10 @@ ...@@ -69,12 +69,10 @@
#if LINUX_VERSION_CODE < 0x20155 /* basically 2.2 plus */ #if LINUX_VERSION_CODE < 0x20155 /* basically 2.2 plus */
#define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb((skb), FREE_WRITE) #define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb((skb), FREE_WRITE)
#define LMC_PCI_PRESENT() pcibios_present()
#else /* Mostly 2.0 kernels */ #else /* Mostly 2.0 kernels */
#define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb(skb) #define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb(skb)
#define LMC_PCI_PRESENT() pci_present()
#endif #endif
......
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