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>
This commit is contained in:
parent
90579fdd41
commit
146bec7905
@ -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++) {
|
for (i = 0; i < 4; i++) {
|
||||||
int j;
|
int j;
|
||||||
printf("\t\t\t\t\t%03d - ", i*4);
|
printf("\t\t\t\t\t%03d - ", i*4);
|
||||||
ptr = &cmd->response[i];
|
ptr = (u8 *)&cmd->response[i];
|
||||||
ptr += 3;
|
ptr += 3;
|
||||||
for (j = 0; j < 4; j++)
|
for (j = 0; j < 4; j++)
|
||||||
printf("%02X ", *ptr--);
|
printf("%02X ", *ptr--);
|
||||||
|
Loading…
Reference in New Issue
Block a user