From: Seung-Woo Kim Date: Fri, 15 May 2020 10:14:26 +0000 (+0900) Subject: mmc: bcm283x: fix int to pointer cast X-Git-Tag: submit/tizen/20200528.065747~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e530aa12f1510bc108832cb02440af45221be1e5;p=platform%2Fkernel%2Fu-boot.git mmc: bcm283x: fix int to pointer cast 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 Signed-off-by: Marek Szyprowski Change-Id: I590d32437763e6e60f216379e4fb55814d0b1bb2 --- diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c index bc9ee95fd5..853bca30eb 100644 --- a/drivers/mmc/bcm2835_sdhci.c +++ b/drivers/mmc/bcm2835_sdhci.c @@ -208,7 +208,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;