[bsp][dm365] Support rt_hw_console_output function; Adjust the initialization sequence; Cleanup code.

[drv][mmcsd] Undo Changes.
This commit is contained in:
weety
2017-10-20 11:19:03 +08:00
parent dd5ac17fc8
commit 5150e19d4b
8 changed files with 117 additions and 42 deletions
@@ -247,9 +247,9 @@ void mmcsd_change(struct rt_mmcsd_host *host);
void mmcsd_detect(void *param);
struct rt_mmcsd_host *mmcsd_alloc_host(void);
void mmcsd_free_host(struct rt_mmcsd_host *host);
int rt_mmcsd_core_init(void);
void rt_mmcsd_core_init(void);
int rt_mmcsd_blk_init(void);
void rt_mmcsd_blk_init(void);
rt_int32_t rt_mmcsd_blk_probe(struct rt_mmcsd_card *card);
void rt_mmcsd_blk_remove(struct rt_mmcsd_card *card);
+1 -4
View File
@@ -479,11 +479,8 @@ void rt_mmcsd_blk_remove(struct rt_mmcsd_card *card)
* @deprecated since 2.1.0, this function does not need to be invoked
* in the system initialization.
*/
int rt_mmcsd_blk_init(void)
void rt_mmcsd_blk_init(void)
{
/* nothing */
return 0;
}
INIT_PREV_EXPORT(rt_mmcsd_blk_init);
+1 -6
View File
@@ -655,7 +655,6 @@ void mmcsd_detect(void *param)
if (init_sd(host, ocr))
mmcsd_power_off(host);
mmcsd_host_unlock(host);
rt_mb_send(&mmcsd_hotpluge_mb, (rt_uint32_t)host);
continue;
}
@@ -727,7 +726,7 @@ void mmcsd_free_host(struct rt_mmcsd_host *host)
rt_free(host);
}
int rt_mmcsd_core_init(void)
void rt_mmcsd_core_init(void)
{
rt_err_t ret;
@@ -750,9 +749,5 @@ int rt_mmcsd_core_init(void)
}
rt_sdio_init();
return 0;
}
INIT_PREV_EXPORT(rt_mmcsd_core_init);