]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sdhci: fix warnings on 64-bit builds
authorRob Herring <robh@kernel.org>
Tue, 17 Mar 2015 20:46:38 +0000 (15:46 -0500)
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>
Wed, 18 Mar 2015 07:55:59 +0000 (09:55 +0200)
Change addresses to unsigned long to be compatible with 64-bit builds.
Regardless of fixing warnings, the device is still only 32-bit capable.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
drivers/mmc/sdhci.c

index 1f8917b1ce1b29daec32efe1dd71468156f21aaa..5332e61cae6bae2c454182e7d4c75d94ded6beb3 100644 (file)
@@ -194,13 +194,13 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
 
 #ifdef CONFIG_MMC_SDMA
                if (data->flags == MMC_DATA_READ)
-                       start_addr = (unsigned int)data->dest;
+                       start_addr = (unsigned long)data->dest;
                else
-                       start_addr = (unsigned int)data->src;
+                       start_addr = (unsigned long)data->src;
                if ((host->quirks & SDHCI_QUIRK_32BIT_DMA_ADDR) &&
                                (start_addr & 0x7) != 0x0) {
                        is_aligned = 0;
-                       start_addr = (unsigned int)aligned_buffer;
+                       start_addr = (unsigned long)aligned_buffer;
                        if (data->flags != MMC_DATA_READ)
                                memcpy(aligned_buffer, data->src, trans_bytes);
                }