diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2016-04-04 15:22:49 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-04-18 12:29:15 -0400 |
commit | 4bc5e19e124636c695459ffe3f654513ba93105a (patch) | |
tree | 99e5462fb4a62476c9495d115d45f3aeb9ada52d /MAKEALL | |
parent | 125d193c4f3895f772a3463996cc8a2554d0b36e (diff) | |
download | u-boot-imx-4bc5e19e124636c695459ffe3f654513ba93105a.zip u-boot-imx-4bc5e19e124636c695459ffe3f654513ba93105a.tar.gz u-boot-imx-4bc5e19e124636c695459ffe3f654513ba93105a.tar.bz2 |
drivers: mmc: omap_hsmmc: Fix conversion of address to a pointer
omap_hsmmc driver directly typecasts fdt_addr_t to a pointer.
This is not strictly correct, as it gives a build warning when
fdt_addr_t is u64. So, use map_physmem for a proper typecasts.
This is inspired by commit 167efe01bc5a9 ("dm: ns16550: Use an address
instead of a pointer for the uart base")
drivers/mmc/omap_hsmmc.c: In function ‘omap_hsmmc_ofdata_to_platdata’:
drivers/mmc/omap_hsmmc.c:776:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
priv->base_addr = (struct hsmmc *)dev_get_addr(dev);
^
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'MAKEALL')
0 files changed, 0 insertions, 0 deletions