summaryrefslogtreecommitdiffstats
path: root/src/include/dev.h
diff options
context:
space:
mode:
authorMichael Brown2005-04-21 20:30:12 +0200
committerMichael Brown2005-04-21 20:30:12 +0200
commit8153a0fa7e94f8e7a4330fc3414cd6b5366a279b (patch)
tree631f2f05c59d70c0ca8465ccdb3f3d3839d06001 /src/include/dev.h
parentCreated a bus/device API that allows for the ROM prefix to specify an (diff)
downloadipxe-8153a0fa7e94f8e7a4330fc3414cd6b5366a279b.tar.gz
ipxe-8153a0fa7e94f8e7a4330fc3414cd6b5366a279b.tar.xz
ipxe-8153a0fa7e94f8e7a4330fc3414cd6b5366a279b.zip
Made macros more like the previous driver API, to minimise required
changes.
Diffstat (limited to 'src/include/dev.h')
-rw-r--r--src/include/dev.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/dev.h b/src/include/dev.h
index 327a27143..4f114496e 100644
--- a/src/include/dev.h
+++ b/src/include/dev.h
@@ -201,10 +201,10 @@ struct device_driver {
#define __device_driver \
__attribute__ (( used, __section__ ( ".drivers.device" ) ))
-#define DRIVER(_name,_name_string,_type_driver,_bus_driver,_bus_info, \
+#define DRIVER(_name,_type_driver,_bus_driver,_bus_info, \
_probe,_disable) \
- static struct device_driver _name __device_driver = { \
- .name = _name_string, \
+ static struct device_driver device_ ## _bus_info __device_driver = { \
+ .name = _name, \
.type_driver = &_type_driver, \
.bus_driver = &_bus_driver, \
.bus_driver_info = ( struct bus_driver_info * ) &_bus_info, \