From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 21 Apr 2016 07:20:03 -0400 Subject: [U-Boot] drivers: mmc: omap_hsmmc: Fix conversion of address to a pointer In-Reply-To: <1459763569-29226-1-git-send-email-mugunthanvnm@ti.com> References: <1459763569-29226-1-git-send-email-mugunthanvnm@ti.com> Message-ID: <20160421112003.GJ3732@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Apr 04, 2016 at 03:22:49PM +0530, Mugunthan V N wrote: > 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 > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: