Allow for multiple BOOT_DRIVER()s in the same file, provided that they
authorMichael Brown <mcb30@etherboot.org>
Thu, 14 Apr 2005 12:02:19 +0000 (12:02 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 14 Apr 2005 12:02:19 +0000 (12:02 +0000)
have different probe functions.

src/include/dev.h

index b5a2edd..73a4ca6 100644 (file)
@@ -55,7 +55,7 @@ struct boot_driver {
 };
 
 #define BOOT_DRIVER( driver_name, probe_func )                               \
-       static struct boot_driver boot_driver                                 \
+       static struct boot_driver boot_driver_ ## probe_func                  \
            __attribute__ ((used,__section__(".boot_drivers"))) = {           \
                .name = driver_name,                                          \
                .probe = probe_func,                                          \