mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
usb: xhci-pci: Fix compiler warning
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>
This commit is contained in:
parent
341dda352d
commit
9fddf6c7dd
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue