usb: xhci-pci: Fix compiler warning
authorBin Meng <bmeng.cn@gmail.com>
Mon, 4 Jun 2018 02:04:14 +0000 (19:04 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 13 Jun 2018 01:50:57 +0000 (09:50 +0800)
This fixes the following compiler warning:

  "warning: cast from pointer to integer of different size
  [-Wpointer-to-int-cast]"

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/xhci-pci.c

index e8fd6bf6ae08fdcad981259ff09aa8d8444dc4fe..b995aef997ec23c695f84e39490de30439bea8d1 100644 (file)
@@ -23,9 +23,8 @@ static void xhci_pci_init(struct udevice *dev, struct xhci_hccr **ret_hccr,
        hcor = (struct xhci_hcor *)((uintptr_t) hccr +
                        HC_LENGTH(xhci_readl(&hccr->cr_capbase)));
 
-       debug("XHCI-PCI init hccr 0x%x and hcor 0x%x hc_length %d\n",
-             (u32)hccr, (u32)hcor,
-             (u32)HC_LENGTH(xhci_readl(&hccr->cr_capbase)));
+       debug("XHCI-PCI init hccr %p and hcor %p hc_length %d\n",
+             hccr, hcor, (u32)HC_LENGTH(xhci_readl(&hccr->cr_capbase)));
 
        *ret_hccr = hccr;
        *ret_hcor = hcor;