Переглянути джерело

Allow for multiple BOOT_DRIVER()s in the same file, provided that they

have different probe functions.
tags/v0.9.3
Michael Brown 19 роки тому
джерело
коміт
1f26be34b8
1 змінених файлів з 1 додано та 1 видалено
  1. 1
    1
      src/include/dev.h

+ 1
- 1
src/include/dev.h Переглянути файл

@@ -55,7 +55,7 @@ struct boot_driver {
55 55
 };
56 56
 
57 57
 #define BOOT_DRIVER( driver_name, probe_func )				      \
58
-	static struct boot_driver boot_driver				      \
58
+	static struct boot_driver boot_driver_ ## probe_func		      \
59 59
 	    __attribute__ ((used,__section__(".boot_drivers"))) = {	      \
60 60
 		.name = driver_name,					      \
61 61
 		.probe = probe_func,					      \

Завантаження…
Відмінити
Зберегти