X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=drivers%2Fmmc%2Fmmc.c;h=0e26394ad383d3b17fac9adf8521734994b84d28;hb=40c2b5fcf55344975451910532b7da9005750253;hp=4aa00a30b137b79f872fb69ee0ea5facd32e396f;hpb=70b155535ec40e8a653b8afd7866edb181e7899e;p=profile%2Fmobile%2Fplatform%2Fkernel%2Fu-boot-tm1.git diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 4aa00a3..0e26394 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -54,6 +54,7 @@ #include #include #endif +#include "card_sdio.h" static struct list_head mmc_devices; static int cur_dev_num = -1; @@ -1018,11 +1019,8 @@ int mmc_initialize(bd_t *bis) #define MMCSD_SECTOR_SIZE 512 int mmc_legacy_init(int dev) { + int rc = -ENODEV; printf("mmc_legacy_init\n"); - int retries, rc = -ENODEV; - uint32_t cid_resp[4]; - uint32_t *resp; - uint16_t rca = 0; if(TRUE == Emmc_Init()) { @@ -1050,7 +1048,7 @@ int mmc_legacy_init(int dev) #endif #ifdef CONFIG_GENERIC_MMC -int mmc_sdcard_init() +int mmc_sdcard_init(void) { #if defined(CONFIG_SC8830) || defined(CONFIG_SC9630) if (TRUE == SDCARD_PowerOn()) {