summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDirk Behme <dirk.behme@de.bosch.com>2012-03-08 02:35:34 +0000
committerWolfgang Denk <wd@denx.de>2012-04-21 17:04:04 +0200
commit146bec790599717930499a94a10accbbdda746ee (patch)
tree5731618a8c884d050106711b264392caa6f8f388 /drivers
parent90579fdd4179f2ed531b3bc69b76c7842fa29ab3 (diff)
downloadu-boot-imx-146bec790599717930499a94a10accbbdda746ee.zip
u-boot-imx-146bec790599717930499a94a10accbbdda746ee.tar.gz
u-boot-imx-146bec790599717930499a94a10accbbdda746ee.tar.bz2
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 <dirk.behme@de.bosch.com> CC: Andy Fleming <afleming@freescale.com> Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index e70fa9f..596732e 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--);