[U-Boot] [PATCH 07/82] mmc: Fix cast for 64-bit compilation

Jaehoon Chung jh80.chung at samsung.com
Mon Oct 10 08:37:54 CEST 2016


Hi Simon, Bin,

On 09/26/2016 12:33 PM, Simon Glass wrote:
> Fix a cast that causes warnings on 64-bit machines.

If you are ok, I will pick this. how about?

Best Regards,
Jaehoon Chung

> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  drivers/mmc/pci_mmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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)
> 



More information about the U-Boot mailing list