Commit 917b32b2 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

PCI: remove pci_present() from drivers/net/saa9730.c

parent f7ed0c8b
......@@ -1050,9 +1050,8 @@ static int lan_saa9730_init(struct net_device *dev, int ioaddr, int irq)
static int __init saa9730_probe(void)
{
struct net_device *dev = NULL;
if (pci_present()) {
struct pci_dev *pdev = NULL;
if (lan_saa9730_debug > 1)
printk
("saa9730.c: PCI bios is present, checking for devices...\n");
......@@ -1071,11 +1070,11 @@ static int __init saa9730_probe(void)
printk("Found SAA9730 (PCI) at %#x, irq %d.\n",
pci_ioaddr, pci_irq_line);
if (!lan_saa9730_init
(dev, pci_ioaddr, pci_irq_line)) return 0;
(dev, pci_ioaddr, pci_irq_line))
return 0;
else
printk("Lan init failed.\n");
}
}
return -ENODEV;
}
......
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