[DRIVER][SDIO] Add components initializer.
This commit is contained in:
parent
9bd094197e
commit
e4dd86a1b7
|
@ -247,9 +247,9 @@ void mmcsd_change(struct rt_mmcsd_host *host);
|
||||||
void mmcsd_detect(void *param);
|
void mmcsd_detect(void *param);
|
||||||
struct rt_mmcsd_host *mmcsd_alloc_host(void);
|
struct rt_mmcsd_host *mmcsd_alloc_host(void);
|
||||||
void mmcsd_free_host(struct rt_mmcsd_host *host);
|
void mmcsd_free_host(struct rt_mmcsd_host *host);
|
||||||
void rt_mmcsd_core_init(void);
|
int rt_mmcsd_core_init(void);
|
||||||
|
|
||||||
void rt_mmcsd_blk_init(void);
|
int rt_mmcsd_blk_init(void);
|
||||||
rt_int32_t rt_mmcsd_blk_probe(struct rt_mmcsd_card *card);
|
rt_int32_t rt_mmcsd_blk_probe(struct rt_mmcsd_card *card);
|
||||||
void rt_mmcsd_blk_remove(struct rt_mmcsd_card *card);
|
void rt_mmcsd_blk_remove(struct rt_mmcsd_card *card);
|
||||||
|
|
||||||
|
|
|
@ -479,8 +479,11 @@ void rt_mmcsd_blk_remove(struct rt_mmcsd_card *card)
|
||||||
* @deprecated since 2.1.0, this function does not need to be invoked
|
* @deprecated since 2.1.0, this function does not need to be invoked
|
||||||
* in the system initialization.
|
* in the system initialization.
|
||||||
*/
|
*/
|
||||||
void rt_mmcsd_blk_init(void)
|
int rt_mmcsd_blk_init(void)
|
||||||
{
|
{
|
||||||
/* nothing */
|
/* nothing */
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
INIT_PREV_EXPORT(rt_mmcsd_blk_init);
|
||||||
|
|
||||||
|
|
|
@ -726,7 +726,7 @@ void mmcsd_free_host(struct rt_mmcsd_host *host)
|
||||||
rt_free(host);
|
rt_free(host);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rt_mmcsd_core_init(void)
|
int rt_mmcsd_core_init(void)
|
||||||
{
|
{
|
||||||
rt_err_t ret;
|
rt_err_t ret;
|
||||||
|
|
||||||
|
@ -751,3 +751,5 @@ void rt_mmcsd_core_init(void)
|
||||||
rt_sdio_init();
|
rt_sdio_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
INIT_PREV_EXPORT(rt_mmcsd_core_init);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue