aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/drivers/bus/mca.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpxe/src/drivers/bus/mca.c')
-rw-r--r--gpxe/src/drivers/bus/mca.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gpxe/src/drivers/bus/mca.c b/gpxe/src/drivers/bus/mca.c
index e9233813..2815603e 100644
--- a/gpxe/src/drivers/bus/mca.c
+++ b/gpxe/src/drivers/bus/mca.c
@@ -5,6 +5,8 @@
*
*/
+FILE_LICENCE ( BSD2 );
+
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
@@ -13,11 +15,6 @@
#include <gpxe/io.h>
#include <gpxe/mca.h>
-static struct mca_driver mca_drivers[0]
- __table_start ( struct mca_driver, mca_drivers );
-static struct mca_driver mca_drivers_end[0]
- __table_end ( struct mca_driver, mca_drivers );
-
static void mcabus_remove ( struct root_device *rootdev );
/**
@@ -41,7 +38,7 @@ static int mca_probe ( struct mca_device *mca ) {
mca->pos[0], mca->pos[1], mca->pos[2], mca->pos[3],
mca->pos[4], mca->pos[5], mca->pos[6], mca->pos[7] );
- for ( driver = mca_drivers; driver < mca_drivers_end; driver++ ){
+ for_each_table_entry ( driver, MCA_DRIVERS ) {
for ( i = 0 ; i < driver->id_count ; i++ ) {
id = &driver->ids[i];
if ( id->id != MCA_ID ( mca ) )