]> git.sur5r.net Git - u-boot/commitdiff
drivers: usb: fsl: Remove warnings for 64-bit architectures
authorNikhil Badola <nikhil.badola@freescale.com>
Tue, 23 Jun 2015 03:47:32 +0000 (09:17 +0530)
committerMarek Vasut <marex@denx.de>
Wed, 22 Jul 2015 06:55:45 +0000 (08:55 +0200)
Replace uint32_t with uintptr_t to remove compilation
warnings for 64-bit architectures.

Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
drivers/usb/host/xhci-fsl.c

index f624c9018371cbbb578002d43d2668bd2a0c648c..385422aed657160356791215d25411f99a858627 100644 (file)
@@ -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;
 }