summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2010-07-01 12:12:42 -0700
committerSandeep Paulraj <s-paulraj@ti.com>2010-07-05 20:00:32 -0400
commit89716964d947805337e82bbf652f13b9a972e47b (patch)
treee9fa8329afc3d92dfea3bd284154dec55345c3f3 /drivers/mmc
parentc57cca255ce403fdfe77e7b040b578a29514da0b (diff)
downloadu-boot-imx-89716964d947805337e82bbf652f13b9a972e47b.zip
u-boot-imx-89716964d947805337e82bbf652f13b9a972e47b.tar.gz
u-boot-imx-89716964d947805337e82bbf652f13b9a972e47b.tar.bz2
mmc: add function prototype for mmc_set_dev in mmc.h
this eliminates compiler warnings when cmd_mmc.c is built with CONFIG_SYS_MMC_SET_DEV the mmc_set_dev implementation in omap3_mmc.c is also tweaked to match the new prototype in parameter naming and type Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/omap3_mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/omap3_mmc.c b/drivers/mmc/omap3_mmc.c
index 4eda216..9506cca 100644
--- a/drivers/mmc/omap3_mmc.c
+++ b/drivers/mmc/omap3_mmc.c
@@ -55,9 +55,9 @@ mmc_card_data cur_card_data;
static block_dev_desc_t mmc_blk_dev;
static hsmmc_t *mmc_base = (hsmmc_t *)OMAP_HSMMC1_BASE;
-unsigned char mmc_set_dev(int dev)
+int mmc_set_dev(int dev_num)
{
- switch (dev) {
+ switch (dev_num) {
case 1:
mmc_base = (hsmmc_t *)OMAP_HSMMC1_BASE;
break;