aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2020-06-03 14:43:43 +0200
committerTom Rini <trini@konsulko.com>2020-07-10 14:10:43 -0400
commit221c5e42a68e44916af5bacb8a8008ec7ef455d5 (patch)
tree1a675023773049cbf66d526d4dadb20eb5ec024a /drivers
parentd877f8fd0f0973451f5c48d37c5d7fb761075765 (diff)
downloadu-boot-221c5e42a68e44916af5bacb8a8008ec7ef455d5.zip
u-boot-221c5e42a68e44916af5bacb8a8008ec7ef455d5.tar.gz
u-boot-221c5e42a68e44916af5bacb8a8008ec7ef455d5.tar.bz2
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 <sw0312.kim@samsung.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/bcm2835_sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c
index dc3dffb..5cdf3c5 100644
--- a/drivers/mmc/bcm2835_sdhci.c
+++ b/drivers/mmc/bcm2835_sdhci.c
@@ -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;