]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/host/ohci-sunxi.c
drivers: USB: OHCI: allow compilation for 64-bit targets
[u-boot] / drivers / usb / host / ohci-sunxi.c
index 2a1e8bf1e897f20d2d4ea1b3201c38093e6d8dda..06893749b0ac9625de0534d040215bad3ed6891d 100644 (file)
@@ -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;