From: Simon Glass Date: Mon, 26 Sep 2016 03:33:10 +0000 (-0600) Subject: mmc: Fix cast for 64-bit compilation X-Git-Tag: v2016.11-rc2~9^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=57718f017b10871cd9dc03dca56c3bd690fc2614;p=u-boot mmc: Fix cast for 64-bit compilation Fix a cast that causes warnings on 64-bit machines. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/drivers/mmc/pci_mmc.c b/drivers/mmc/pci_mmc.c index 340eef6a1f..3d587cc97d 100644 --- a/drivers/mmc/pci_mmc.c +++ b/drivers/mmc/pci_mmc.c @@ -30,7 +30,7 @@ int pci_mmc_init(const char *name, struct pci_device_id *mmc_supported) mmc_host->name = name; dm_pci_read_config32(dev, PCI_BASE_ADDRESS_0, &iobase); - mmc_host->ioaddr = (void *)iobase; + mmc_host->ioaddr = (void *)(ulong)iobase; mmc_host->quirks = 0; ret = add_sdhci(mmc_host, 0, 0); if (ret)