From 4e3e389200c08054aed55eb58fa8c0b8a9c5331c Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 12 Apr 2005 23:05:00 +0000 Subject: 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 --- src/drivers/net/davicom.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/drivers/net/davicom.c') diff --git a/src/drivers/net/davicom.c b/src/drivers/net/davicom.c index 1d0235f4..c8856289 100644 --- a/src/drivers/net/davicom.c +++ b/src/drivers/net/davicom.c @@ -710,11 +710,7 @@ PCI_ROM(0x1282, 0x9009, "davicom9009", "Davicom 9009"), PCI_ROM(0x1282, 0x9132, "davicom9132", "Davicom 9132"), /* Needs probably some fixing */ }; -static struct pci_driver davicom_driver __pci_driver = { - .type = NIC_DRIVER, - .name = "DAVICOM", - .probe = davicom_probe, - .ids = davicom_nics, - .id_count = sizeof(davicom_nics)/sizeof(davicom_nics[0]), - .class = 0, -}; +static struct pci_driver davicom_driver = + PCI_DRIVER ( "DAVICOM", davicom_nics, PCI_NO_CLASS ); + +BOOT_DRIVER ( "DAVICOM", davicom_probe ); -- cgit v1.2.3-55-g7522