mmc: Fix cast for 64-bit compilation
authorSimon Glass <sjg@chromium.org>
Mon, 26 Sep 2016 03:33:10 +0000 (21:33 -0600)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 10 Oct 2016 22:46:11 +0000 (07:46 +0900)
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>
drivers/mmc/pci_mmc.c

index 340eef6a1f38c49e400244a55d69f7c75ecfaedc..3d587cc97d6653042eefa2f281e8d8b5cc9e6fcb 100644 (file)
@@ -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)