]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/usb/host/ehci-fsl.c
usb: ehci: fsl: Fix some compile warnings.
[people/ms/u-boot.git] / drivers / usb / host / ehci-fsl.c
index 62c431b99f7bb62eaf0a52f44cf97759be5c73b0..17d1fae3829d4d51dd1f9767800d810763933798 100644 (file)
@@ -106,14 +106,14 @@ static int ehci_fsl_probe(struct udevice *dev)
        ehci = (struct usb_ehci *)priv->hcd_base;
        hccr = (struct ehci_hccr *)(&ehci->caplength);
        hcor = (struct ehci_hcor *)
-               ((u32)hccr + HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
+               ((void *)hccr + HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
 
        if (ehci_fsl_init(priv, ehci, hccr, hcor) < 0)
                return -ENXIO;
 
-       debug("ehci-fsl: init hccr %x and hcor %x hc_length %d\n",
-             (u32)hccr, (u32)hcor,
-             (u32)HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
+       debug("ehci-fsl: init hccr %p and hcor %p hc_length %d\n",
+             (void *)hccr, (void *)hcor,
+             HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
 
        return ehci_register(dev, hccr, hcor, &fsl_ehci_ops, 0, USB_INIT_HOST);
 }