summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2005-04-14 16:30:03 +0200
committerMichael Brown2005-04-14 16:30:03 +0200
commit2e309f9eec1210a5e39f58b0d523f237e179a1af (patch)
tree4d03cd611fb2a970349f4ebfd477c1cd17e4b505 /src/include
parentbus header files must include dev.h to get struct dev. (diff)
downloadipxe-2e309f9eec1210a5e39f58b0d523f237e179a1af.tar.gz
ipxe-2e309f9eec1210a5e39f58b0d523f237e179a1af.tar.xz
ipxe-2e309f9eec1210a5e39f58b0d523f237e179a1af.zip
Fix BOOT_DRIVER to assign unique and meaningful name to structure.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/dev.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/dev.h b/src/include/dev.h
index 9ade0e1fe..555712aa0 100644
--- a/src/include/dev.h
+++ b/src/include/dev.h
@@ -66,11 +66,11 @@ struct boot_driver {
};
#define BOOT_DRIVER( _name, _find_bus_boot_device, _bus_driver, _probe ) \
- static struct boot_driver boot_driver_ ## probe_func \
+ static struct boot_driver boot_ ## _bus_driver \
__attribute__ ((used,__section__(".boot_drivers"))) = { \
.name = _name, \
.find_bus_boot_device = ( void * ) _find_bus_boot_device, \
- .bus_driver = ( void * ) _bus_driver, \
+ .bus_driver = ( void * ) &_bus_driver, \
.probe = ( void * ) _probe, \
};