mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 15:31:42 +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:
@@ -158,14 +158,10 @@ static struct pci_id skel_nics[] = {
|
||||
PCI_ROM(0x0000, 0x0000, "skel-pci", "Skeleton PCI Adaptor"),
|
||||
};
|
||||
|
||||
static struct pci_driver skel_driver __pci_driver = {
|
||||
.type = NIC_DRIVER,
|
||||
.name = "SKELETON/PCI",
|
||||
.probe = skel_probe,
|
||||
.ids = skel_nics,
|
||||
.id_count = sizeof(skel_nics)/sizeof(skel_nics[0]),
|
||||
.class = 0,
|
||||
};
|
||||
static struct pci_driver skel_driver =
|
||||
PCI_DRIVER ( "SKELETON/PCI", skel_nics, PCI_NO_CLASS );
|
||||
|
||||
BOOT_DRIVER ( "SKELETON/PCI", skel_probe );
|
||||
|
||||
/**************************************************************************
|
||||
PROBE - Look for an adapter, this routine's visible to the outside
|
||||
|
||||
Reference in New Issue
Block a user