phy: omap-usb2-phy: Fix warnings when built for ARM64
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Dec 2019 05:07:30 +0000 (10:37 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 20 Jan 2020 04:40:29 +0000 (10:10 +0530)
commitd35f2cfa5bf4b1fa6cb05614e53b4efc21095ec9
tree2cbc29e5fcb7d6e137bf95431f696f1ed7c221ad
parentcab4e275dd148a5bf6fe53933314e6732309ad2a
phy: omap-usb2-phy: Fix warnings when built for ARM64

Below warning is seen when this driver is built for devices with 64 bit
physical address space.

drivers/phy/omap-usb2-phy.c: In function ‘omap_usb2_phy_probe’:
drivers/phy/omap-usb2-phy.c:187:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   priv->phy_base = (void *)base;
                    ^
Fix this by using dev_read_addr_ptr() instead of dev_read_addr().

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/phy/omap-usb2-phy.c