瀏覽代碼

Kill off the "all devices are boot devices" idea

tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
441189c6f8
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/include/dev.h

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

@@ -200,6 +200,7 @@ struct device_driver {
200 200
 
201 201
 #define __device_driver __table ( device_driver, 01 )
202 202
 
203
+#if 0
203 204
 #define DRIVER(_name,_type_driver,_bus_driver,_bus_info,	 	      \
204 205
 	       _probe,_disable) 		 			      \
205 206
 	struct device_driver device_ ## _bus_info __device_driver = {  \
@@ -210,6 +211,9 @@ struct device_driver {
210 211
 		.probe = ( int (*) () ) _probe,				      \
211 212
 		.disable = ( void (*) () ) _disable,			      \
212 213
 	};
214
+#endif
215
+
216
+#define DRIVER(a,b,c,d,e,f)
213 217
 
214 218
 /*
215 219
  * A bootable device, comprising a physical device on a bus, a driver

Loading…
取消
儲存