diff options
| author | Michael Brown | 2005-04-14 17:00:05 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-14 17:00:05 +0200 |
| commit | 2c6061783617c6afce60ebb1b298602ce96359d2 (patch) | |
| tree | 6e29fe1736f3a64f752d2f2975be194f9dd9584a /src/drivers/net/rtl8139.c | |
| parent | Fix up the automatic modifications. (diff) | |
| download | ipxe-2c6061783617c6afce60ebb1b298602ce96359d2.tar.gz ipxe-2c6061783617c6afce60ebb1b298602ce96359d2.tar.xz ipxe-2c6061783617c6afce60ebb1b298602ce96359d2.zip | |
Automatically modified by
perl -pi -0777 -e 's/\s*?if\s*\(\s*!\s*find_pci_device.*?,\s*\&(\w+)\s*\)\s*\)\s*return\s*0;(.*BOOT_DRIVER\s*\(.*?,)(.*?\))/$2 find_pci_boot_device, $1,$3/sm' *.c
Diffstat (limited to 'src/drivers/net/rtl8139.c')
| -rw-r--r-- | src/drivers/net/rtl8139.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/drivers/net/rtl8139.c b/src/drivers/net/rtl8139.c index ddd7760c..590225dc 100644 --- a/src/drivers/net/rtl8139.c +++ b/src/drivers/net/rtl8139.c @@ -190,9 +190,6 @@ static int rtl8139_probe ( struct dev *dev, struct pci_device *pci ) { int addr_len; unsigned short *ap = (unsigned short*)nic->node_addr; - if ( ! find_pci_device ( pci, &rtl8139_driver ) ) - return 0; - /* Copy ioaddr and IRQ from PCI information */ nic->ioaddr = pci->ioaddr; nic->irqno = pci->irq; @@ -543,4 +540,4 @@ PCI_ROM(0xffff, 0x8139, "clone-rtl8139", "Cloned 8139"), static struct pci_driver rtl8139_driver = PCI_DRIVER ( "RTL8139", rtl8139_nics, PCI_NO_CLASS ); -BOOT_DRIVER ( "RTL8139", rtl8139_probe ); +BOOT_DRIVER ( "RTL8139", find_pci_boot_device, rtl8139_driver, rtl8139_probe ); |
