]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: bcm283x: fix int to pointer cast
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 3 Jun 2020 12:43:43 +0000 (14:43 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 10 Jul 2020 18:10:43 +0000 (14:10 -0400)
On build with 32 bit, there is a warning for int-to-pointer-cast.
Fix the int to pointer cast by using uintptr_t.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
drivers/mmc/bcm2835_sdhci.c

index dc3dffb657d40e61a3dd81a735e54c42e0264386..5cdf3c506fe3f326bdd65b75f3f5309dca162bbd 100644 (file)
@@ -210,7 +210,7 @@ static int bcm2835_sdhci_probe(struct udevice *dev)
        priv->last_write = 0;
 
        host->name = dev->name;
-       host->ioaddr = (void *)base;
+       host->ioaddr = (void *)(uintptr_t)base;
        host->quirks = SDHCI_QUIRK_BROKEN_VOLTAGE | SDHCI_QUIRK_BROKEN_R1B |
                SDHCI_QUIRK_WAIT_SEND_CMD | SDHCI_QUIRK_NO_HISPD_BIT;
        host->max_clk = emmc_freq;