diff options
author | Michael Brown <mcb30@etherboot.org> | 2005-04-12 23:05:00 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2005-04-12 23:05:00 +0000 |
commit | 4e3e389200c08054aed55eb58fa8c0b8a9c5331c (patch) | |
tree | a428a83798ef188a790558ecb40ae0b0c10e0cd2 /src/drivers/net/prism2_pci.c | |
parent | 241fb0f3cd3665ea8805b119989a50c76bcc8639 (diff) | |
download | ipxe-4e3e389200c08054aed55eb58fa8c0b8a9c5331c.tar.gz |
Auto-updated using
perl -pi -0777 -e 's/static struct pci_driver (\w+) __pci_driver = {.*\.name\s*=\s*(\"\S+\").*\.probe\s*=\s*(\w+).*\.ids\s*=\s*(\w+).*\.class\s*=\s*(\w+).*?};/static struct pci_driver $1 =\n\tPCI_DRIVER ( $2, $4, $5 );\n\nBOOT_DRIVER ( $2, $3 );/ms' *.c
perl -pi -e 's/(PCI_DRIVER \(.*, )0 \);/${1}PCI_NO_CLASS );/' *.c
Diffstat (limited to 'src/drivers/net/prism2_pci.c')
-rw-r--r-- | src/drivers/net/prism2_pci.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/drivers/net/prism2_pci.c b/src/drivers/net/prism2_pci.c index 4aafb4ff2..1d4ea31c1 100644 --- a/src/drivers/net/prism2_pci.c +++ b/src/drivers/net/prism2_pci.c @@ -23,12 +23,8 @@ PCI_ROM(0x1260, 0x3873, "hwp01170", "ActionTec HWP01170"), PCI_ROM(0x1260, 0x3873, "dwl520", "DLink DWL-520"), }; -static struct pci_driver prism2_pci_driver __pci_driver = { - .type = NIC_DRIVER, - .name = "Prism2_PCI", - .probe = prism2_pci_probe, - .ids = prism2_pci_nics, - .id_count = sizeof(prism2_pci_nics)/sizeof(prism2_pci_nics[0]), - .class = 0, -}; +static struct pci_driver prism2_pci_driver = + PCI_DRIVER ( "Prism2_PCI", prism2_pci_nics, PCI_NO_CLASS ); + +BOOT_DRIVER ( "Prism2_PCI", prism2_pci_probe ); |