summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikhil Badola <nikhil.badola@freescale.com>2015-06-23 09:17:32 +0530
committerMarek Vasut <marex@denx.de>2015-07-22 08:55:45 +0200
commit7e5a32fcf378d30cb2ab5f8471071350574ff70a (patch)
treea68e06d2c4cdaba6e08f565fca790faa8d16af1c
parent081a1b730d5bc63070765e0e3e61517eef3f9eb0 (diff)
downloadu-boot-imx-7e5a32fcf378d30cb2ab5f8471071350574ff70a.zip
u-boot-imx-7e5a32fcf378d30cb2ab5f8471071350574ff70a.tar.gz
u-boot-imx-7e5a32fcf378d30cb2ab5f8471071350574ff70a.tar.bz2
drivers: usb: fsl: Remove warnings for 64-bit architectures
Replace uint32_t with uintptr_t to remove compilation warnings for 64-bit architectures. Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
-rw-r--r--drivers/usb/host/xhci-fsl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/xhci-fsl.c b/drivers/usb/host/xhci-fsl.c
index f624c90..385422a 100644
--- a/drivers/usb/host/xhci-fsl.c
+++ b/drivers/usb/host/xhci-fsl.c
@@ -91,12 +91,12 @@ int xhci_hcd_init(int index, struct xhci_hccr **hccr, struct xhci_hcor **hcor)
}
*hccr = (struct xhci_hccr *)ctx->hcd;
- *hcor = (struct xhci_hcor *)((uint32_t) *hccr
+ *hcor = (struct xhci_hcor *)((uintptr_t) *hccr
+ HC_LENGTH(xhci_readl(&(*hccr)->cr_capbase)));
- debug("fsl-xhci: init hccr %x and hcor %x hc_length %d\n",
- (uint32_t)*hccr, (uint32_t)*hcor,
- (uint32_t)HC_LENGTH(xhci_readl(&(*hccr)->cr_capbase)));
+ debug("fsl-xhci: init hccr %lx and hcor %lx hc_length %lx\n",
+ (uintptr_t)*hccr, (uintptr_t)*hcor,
+ (uintptr_t)HC_LENGTH(xhci_readl(&(*hccr)->cr_capbase)));
return ret;
}