diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-25 21:33:10 -0600 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2016-10-11 07:46:11 +0900 |
commit | 57718f017b10871cd9dc03dca56c3bd690fc2614 (patch) | |
tree | 50d2478ece2f2d34e1c909e52d0e24d3fa255923 /drivers | |
parent | 2cb5d67c1aceb758033954cc06382367ac89e6ac (diff) | |
download | u-boot-imx-57718f017b10871cd9dc03dca56c3bd690fc2614.zip u-boot-imx-57718f017b10871cd9dc03dca56c3bd690fc2614.tar.gz u-boot-imx-57718f017b10871cd9dc03dca56c3bd690fc2614.tar.bz2 |
mmc: Fix cast for 64-bit compilation
Fix a cast that causes warnings on 64-bit machines.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/pci_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/pci_mmc.c b/drivers/mmc/pci_mmc.c index 340eef6..3d587cc 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) |