From ffa3e22d2e7440a6e93e8142e18a7c6a17997511 Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Mon, 24 Jan 2011 23:32:38 +0000 Subject: [PATCH] fix device type. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1260 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/lm3s/sdcard.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bsp/lm3s/sdcard.c b/bsp/lm3s/sdcard.c index 673b94fa0..785f2eaf3 100644 --- a/bsp/lm3s/sdcard.c +++ b/bsp/lm3s/sdcard.c @@ -760,11 +760,12 @@ 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; + sdcard_device.close = rt_sdcard_close; sdcard_device.read = rt_sdcard_read; - sdcard_device.write = rt_sdcard_write; + sdcard_device.write = rt_sdcard_write; sdcard_device.control = rt_sdcard_control; /* no private */