fix device type.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1260 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2011-01-24 23:32:38 +00:00
parent 4e3839d702
commit ffa3e22d2e
1 changed files with 3 additions and 2 deletions

View File

@ -760,6 +760,7 @@ void rt_hw_sdcard_init(void)
rt_free(sector);
/* register sdcard device */
sdcard_device.type = RT_Device_Class_Block;
sdcard_device.init = rt_sdcard_init;
sdcard_device.open = rt_sdcard_open;
sdcard_device.close = rt_sdcard_close;