aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/drivers/bus/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpxe/src/drivers/bus/pci.c')
-rw-r--r--gpxe/src/drivers/bus/pci.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gpxe/src/drivers/bus/pci.c b/gpxe/src/drivers/bus/pci.c
index 2dc9d43a..8899e6e1 100644
--- a/gpxe/src/drivers/bus/pci.c
+++ b/gpxe/src/drivers/bus/pci.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
@@ -34,11 +36,6 @@
*
*/
-static struct pci_driver pci_drivers[0]
- __table_start ( struct pci_driver, pci_drivers );
-static struct pci_driver pci_drivers_end[0]
- __table_end ( struct pci_driver, pci_drivers );
-
static void pcibus_remove ( struct root_device *rootdev );
/**
@@ -188,7 +185,7 @@ static int pci_probe ( struct pci_device *pci ) {
PCI_FUNC ( pci->devfn ), pci->vendor, pci->device,
pci->membase, pci->ioaddr, pci->irq );
- for ( driver = pci_drivers ; driver < pci_drivers_end ; driver++ ) {
+ for_each_table_entry ( driver, PCI_DRIVERS ) {
for ( i = 0 ; i < driver->id_count ; i++ ) {
id = &driver->ids[i];
if ( ( id->vendor != PCI_ANY_ID ) &&