From: Dirk Behme Date: Thu, 8 Mar 2012 02:35:34 +0000 (+0000) Subject: mmc: Fix warning if CONFIG_MMC_TRACE is enabled X-Git-Tag: v2012.04~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=146bec790599717930499a94a10accbbdda746ee;p=u-boot mmc: Fix warning if CONFIG_MMC_TRACE is enabled Fix the warning mmc.c: In function 'mmc_send_cmd': mmc.c:87: warning: assignment from incompatible pointer type in case CONFIG_MMC_TRACE is enabled. Signed-off-by: Dirk Behme CC: Andy Fleming Acked-by: Simon Glass Acked-by: Marek Vasut --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index e70fa9f8dc..596732e80e 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -179,7 +179,7 @@ int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) for (i = 0; i < 4; i++) { int j; printf("\t\t\t\t\t%03d - ", i*4); - ptr = &cmd->response[i]; + ptr = (u8 *)&cmd->response[i]; ptr += 3; for (j = 0; j < 4; j++) printf("%02X ", *ptr--);