diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-05-21 11:10:59 +0200 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-05-27 15:27:31 +0200 |
commit | 7a96ddadd13e6ac9a829affce9b6f8823f580e49 (patch) | |
tree | a1137b0a65c18fbfc5334142d7d687592065ed3d /cpu/at32ap | |
parent | a23e277c4a3a2bbc42d237aae29da3a8971e757f (diff) | |
download | u-boot-imx-7a96ddadd13e6ac9a829affce9b6f8823f580e49.zip u-boot-imx-7a96ddadd13e6ac9a829affce9b6f8823f580e49.tar.gz u-boot-imx-7a96ddadd13e6ac9a829affce9b6f8823f580e49.tar.bz2 |
avr32: Fix two warnings in atmel_mci.c
The warnings are harmless but annoying. Let's fix them.
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'cpu/at32ap')
-rw-r--r-- | cpu/at32ap/atmel_mci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpu/at32ap/atmel_mci.c b/cpu/at32ap/atmel_mci.c index f59dfb5..3ce9ea5 100644 --- a/cpu/at32ap/atmel_mci.c +++ b/cpu/at32ap/atmel_mci.c @@ -182,12 +182,13 @@ static int mmc_acmd(unsigned long cmd, unsigned long arg, static unsigned long mmc_bread(int dev, unsigned long start, lbaint_t blkcnt, - unsigned long *buffer) + void *buffer) { int ret, i = 0; unsigned long resp[4]; unsigned long card_status, data; unsigned long wordcount; + u32 *p = buffer; u32 status; if (blkcnt == 0) @@ -225,7 +226,7 @@ mmc_bread(int dev, unsigned long start, lbaint_t blkcnt, if (status & MMCI_BIT(RXRDY)) { data = mmci_readl(RDR); /* pr_debug("%x\n", data); */ - *buffer++ = data; + *p++ = data; wordcount++; } } while(wordcount < (mmc_blkdev.blksz / 4)); @@ -443,6 +444,7 @@ static void mci_set_data_timeout(struct mmc_csd *csd) dtocyc = timeout_clks; dtomul = 0; + shift = 0; while (dtocyc > 15 && dtomul < 8) { dtomul++; shift = dtomul_to_shift[dtomul]; |