From 8153a0fa7e94f8e7a4330fc3414cd6b5366a279b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 21 Apr 2005 18:30:12 +0000 Subject: Made macros more like the previous driver API, to minimise required changes. --- src/include/dev.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/include/dev.h') 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, \ -- cgit v1.2.3-55-g7522