projects
/
profile
/
mobile
/
platform
/
kernel
/
u-boot-tm1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mmc: sprd: remove build warnings
[profile/mobile/platform/kernel/u-boot-tm1.git]
/
drivers
/
mmc
/
mmc.c
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index
4aa00a3
..
0e26394
100644
(file)
--- a/
drivers/mmc/mmc.c
+++ b/
drivers/mmc/mmc.c
@@
-54,6
+54,7
@@
#include <asm/arch/sc8810_reg_global.h>
#include <asm/arch/sc8810_module_config.h>
#endif
#include <asm/arch/sc8810_reg_global.h>
#include <asm/arch/sc8810_module_config.h>
#endif
+#include "card_sdio.h"
static struct list_head mmc_devices;
static int cur_dev_num = -1;
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)
{
#define MMCSD_SECTOR_SIZE 512
int mmc_legacy_init(int dev)
{
+ int rc = -ENODEV;
printf("mmc_legacy_init\n");
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())
{
if(TRUE == Emmc_Init())
{
@@
-1050,7
+1048,7
@@
int mmc_legacy_init(int dev)
#endif
#ifdef CONFIG_GENERIC_MMC
#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()) {
{
#if defined(CONFIG_SC8830) || defined(CONFIG_SC9630)
if (TRUE == SDCARD_PowerOn()) {