summaryrefslogtreecommitdiff
path: root/gpxe/src/drivers/bus/isapnp.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-02 22:41:00 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-02 22:41:00 -0800
commit702c7fbe7342403472e887508716add0c58c385c (patch)
tree639050b522cea25f4475d48da54380d61c7d10f3 /gpxe/src/drivers/bus/isapnp.c
parent1e96e9cc1c3549c86dbf4e7caf880477e16e93e0 (diff)
downloadsyslinux-702c7fbe7342403472e887508716add0c58c385c.tar.gz
Update gPXE to version 1.0.0
Diffstat (limited to 'gpxe/src/drivers/bus/isapnp.c')
-rw-r--r--gpxe/src/drivers/bus/isapnp.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gpxe/src/drivers/bus/isapnp.c b/gpxe/src/drivers/bus/isapnp.c
index 8f812df8..ccf6209f 100644
--- a/gpxe/src/drivers/bus/isapnp.c
+++ b/gpxe/src/drivers/bus/isapnp.c
@@ -55,6 +55,8 @@
*
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
@@ -72,11 +74,6 @@
*/
uint16_t isapnp_read_port;
-static struct isapnp_driver isapnp_drivers[0]
- __table_start ( struct isapnp_driver, isapnp_drivers );
-static struct isapnp_driver isapnp_drivers_end[0]
- __table_end ( struct isapnp_driver, isapnp_drivers );
-
static void isapnpbus_remove ( struct root_device *rootdev );
/*
@@ -594,7 +591,7 @@ static int isapnp_probe ( struct isapnp_device *isapnp ) {
isa_id_string ( isapnp->vendor_id, isapnp->prod_id ),
isapnp->ioaddr, isapnp->irqno );
- for ( driver = isapnp_drivers; driver < isapnp_drivers_end; driver++ ){
+ for_each_table_entry ( driver, ISAPNP_DRIVERS ) {
for ( i = 0 ; i < driver->id_count ; i++ ) {
id = &driver->ids[i];
if ( id->vendor_id != isapnp->vendor_id )