summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/pcnet32.c
diff options
context:
space:
mode:
authorMichael Brown2005-04-14 17:00:05 +0200
committerMichael Brown2005-04-14 17:00:05 +0200
commit2c6061783617c6afce60ebb1b298602ce96359d2 (patch)
tree6e29fe1736f3a64f752d2f2975be194f9dd9584a /src/drivers/net/pcnet32.c
parentFix up the automatic modifications. (diff)
downloadipxe-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/pcnet32.c')
-rw-r--r--src/drivers/net/pcnet32.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/drivers/net/pcnet32.c b/src/drivers/net/pcnet32.c
index e7fde829..f0fa0c7b 100644
--- a/src/drivers/net/pcnet32.c
+++ b/src/drivers/net/pcnet32.c
@@ -676,9 +676,6 @@ static int pcnet32_probe ( struct dev *dev, struct pci_device *pci ) {
u8 promaddr[6];
int shared = 1;
- if ( ! find_pci_device ( pci, &pcnet32_driver ) )
- return 0;
-
if (pci->ioaddr == 0)
return 0;
@@ -1005,4 +1002,4 @@ static struct pci_id pcnet32_nics[] = {
static struct pci_driver pcnet32_driver =
PCI_DRIVER ( "PCNET32/PCI", pcnet32_nics, PCI_NO_CLASS );
-BOOT_DRIVER ( "PCNET32/PCI", pcnet32_probe );
+BOOT_DRIVER ( "PCNET32/PCI", find_pci_boot_device, pcnet32_driver, pcnet32_probe );