Browse Source

Fix BOOT_DRIVER to assign unique and meaningful name to structure.

tags/v0.9.3
Michael Brown 20 years ago
parent
commit
2e309f9eec
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/include/dev.h

+ 2
- 2
src/include/dev.h View File

66
 };
66
 };
67
 
67
 
68
 #define BOOT_DRIVER( _name, _find_bus_boot_device, _bus_driver,	_probe )      \
68
 #define BOOT_DRIVER( _name, _find_bus_boot_device, _bus_driver,	_probe )      \
69
-	static struct boot_driver boot_driver_ ## probe_func		      \
69
+	static struct boot_driver boot_ ## _bus_driver			      \
70
 	    __attribute__ ((used,__section__(".boot_drivers"))) = {	      \
70
 	    __attribute__ ((used,__section__(".boot_drivers"))) = {	      \
71
 		.name = _name,						      \
71
 		.name = _name,						      \
72
 		.find_bus_boot_device = ( void * ) _find_bus_boot_device,     \
72
 		.find_bus_boot_device = ( void * ) _find_bus_boot_device,     \
73
-		.bus_driver = ( void * ) _bus_driver,			      \
73
+		.bus_driver = ( void * ) &_bus_driver,			      \
74
 		.probe = ( void * ) _probe,				      \
74
 		.probe = ( void * ) _probe,				      \
75
 	};
75
 	};
76
 
76
 

Loading…
Cancel
Save