瀏覽代碼

Fix BOOT_DRIVER to assign unique and meaningful name to structure.

tags/v0.9.3
Michael Brown 19 年之前
父節點
當前提交
2e309f9eec
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/include/dev.h

+ 2
- 2
src/include/dev.h 查看文件

@@ -66,11 +66,11 @@ struct boot_driver {
66 66
 };
67 67
 
68 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 70
 	    __attribute__ ((used,__section__(".boot_drivers"))) = {	      \
71 71
 		.name = _name,						      \
72 72
 		.find_bus_boot_device = ( void * ) _find_bus_boot_device,     \
73
-		.bus_driver = ( void * ) _bus_driver,			      \
73
+		.bus_driver = ( void * ) &_bus_driver,			      \
74 74
 		.probe = ( void * ) _probe,				      \
75 75
 	};
76 76
 

Loading…
取消
儲存