diff options
author | Tom Rini <trini@konsulko.com> | 2016-10-29 17:15:37 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-29 17:15:37 -0400 |
commit | 30aaa774df39971e0f488b7661c8825a45570cd2 (patch) | |
tree | 45f4d86b3a2f3e3b69140079636144512885a270 /drivers/usb/host/ohci-sunxi.c | |
parent | 9f375f655fa54f88fdbe35d3f0c3bd6c1a91671b (diff) | |
parent | 57faca19a82fc9b43a227824c30aeb76a43d1957 (diff) | |
download | u-boot-imx-30aaa774df39971e0f488b7661c8825a45570cd2.zip u-boot-imx-30aaa774df39971e0f488b7661c8825a45570cd2.tar.gz u-boot-imx-30aaa774df39971e0f488b7661c8825a45570cd2.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'drivers/usb/host/ohci-sunxi.c')
-rw-r--r-- | drivers/usb/host/ohci-sunxi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-sunxi.c b/drivers/usb/host/ohci-sunxi.c index 2a1e8bf..0689374 100644 --- a/drivers/usb/host/ohci-sunxi.c +++ b/drivers/usb/host/ohci-sunxi.c @@ -51,7 +51,7 @@ static int ohci_usb_probe(struct udevice *dev) extra_ahb_gate_mask = 1 << AHB_GATE_OFFSET_USB_EHCI0; #endif priv->usb_gate_mask = CCM_USB_CTRL_OHCI0_CLK; - priv->phy_index = ((u32)regs - (SUNXI_USB1_BASE + 0x400)) / BASE_DIST; + priv->phy_index = ((uintptr_t)regs - (SUNXI_USB1_BASE + 0x400)) / BASE_DIST; priv->ahb_gate_mask <<= priv->phy_index * AHB_CLK_DIST; extra_ahb_gate_mask <<= priv->phy_index * AHB_CLK_DIST; priv->usb_gate_mask <<= priv->phy_index; |