aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/drivers/bus/isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpxe/src/drivers/bus/isa.c')
-rw-r--r--gpxe/src/drivers/bus/isa.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gpxe/src/drivers/bus/isa.c b/gpxe/src/drivers/bus/isa.c
index fa5def54..f458826d 100644
--- a/gpxe/src/drivers/bus/isa.c
+++ b/gpxe/src/drivers/bus/isa.c
@@ -6,6 +6,8 @@
#include <gpxe/io.h>
#include <gpxe/isa.h>
+FILE_LICENCE ( GPL2_OR_LATER );
+
/*
* isa.c implements a "classical" port-scanning method of ISA device
* detection. The driver must provide a list of probe addresses
@@ -48,11 +50,6 @@ static isa_probe_addr_t isa_extra_probe_addrs[] = {
isa_extra_probe_addrs[ (ioidx) + ISA_EXTRA_PROBE_ADDR_COUNT ] : \
(driver)->probe_addrs[(ioidx)] )
-static struct isa_driver isa_drivers[0]
- __table_start ( struct isa_driver, isa_drivers );
-static struct isa_driver isa_drivers_end[0]
- __table_end ( struct isa_driver, isa_drivers );
-
static void isabus_remove ( struct root_device *rootdev );
/**
@@ -100,7 +97,7 @@ static int isabus_probe ( struct root_device *rootdev ) {
int ioidx;
int rc;
- for ( driver = isa_drivers ; driver < isa_drivers_end ; driver++ ) {
+ for_each_table_entry ( driver, ISA_DRIVERS ) {
for ( ioidx = ISA_IOIDX_MIN ( driver ) ;
ioidx <= ISA_IOIDX_MAX ( driver ) ; ioidx++ ) {
/* Allocate struct isa_device */