mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 04:50:25 +03:00
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
This commit is contained in:
@@ -3384,11 +3384,7 @@ PCI_ROM(0x173b, 0x03ea, "tg3-ac9100", "Altima AC9100"),
|
||||
PCI_ROM(0x173b, 0x03eb, "tg3-ac1003", "Altima AC1003"),
|
||||
};
|
||||
|
||||
static struct pci_driver tg3_driver __pci_driver = {
|
||||
.type = NIC_DRIVER,
|
||||
.name = "TG3",
|
||||
.probe = tg3_probe,
|
||||
.ids = tg3_nics,
|
||||
.id_count = sizeof(tg3_nics)/sizeof(tg3_nics[0]),
|
||||
.class = 0,
|
||||
};
|
||||
static struct pci_driver tg3_driver =
|
||||
PCI_DRIVER ( "TG3", tg3_nics, PCI_NO_CLASS );
|
||||
|
||||
BOOT_DRIVER ( "TG3", tg3_probe );
|
||||
|
||||
Reference in New Issue
Block a user