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 <[email protected]>
---
drivers/mmc/omap3_mmc.c +2 -2
@@ -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 ;
include/mmc.h +1 -0
@@ -271,6 +271,7 @@ int mmc_initialize(bd_t *bis);int mmc_init (struct mmc *mmc);int mmc_read (struct mmc *mmc,u64 src,uchar *dst,int size);struct mmc *find_mmc_device (int dev_num); +int mmc_set_dev (int dev_num);void print_mmc_devices (char separator);int board_mmc_getcd (u8 *cd,struct mmc *mmc);
Paulraj
[U-Boot] add function prototype for mmc_set_dev in mmc.h
Quoted 4 lines
Subject: mmc: add function prototype for
mmc_set_devinmmc.h
Quoted 8 lines
this eliminates compiler warnings when
cmd_mmc.cis built withCONFIG_SYS_MMC_SET_DEVthe
mmc_set_devimplementation inomap3_mmc.cis also tweaked to match the new prototype in parameter naming and typeSigned-off-by Steve Sakoman <[email protected]>---
Thanks
pushed to u-boot-ti
Sandeep