UPSTREAM: usb, ohci: add warning if none on pci found
Change-Id: I7e7a39a7d3ff257381a63a6bc07f86d1fa16a159 Signed-off-by: Heiko Schocher <hs@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit f9c7fecbeb938d9a17e31bf7c8766190752790ae)
This commit is contained in:
parent
55f7a84eaa
commit
53764d8fd5
|
|
@ -2048,8 +2048,11 @@ int usb_lowlevel_init(int index, enum usb_init_type init, void **controller)
|
|||
pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &base);
|
||||
printf("OHCI regs address 0x%08x\n", base);
|
||||
gohci.regs = (struct ohci_regs *)base;
|
||||
} else
|
||||
} else {
|
||||
printf("%s: OHCI devnr: %d not found\n", __func__,
|
||||
CONFIG_PCI_OHCI_DEVNO);
|
||||
return -1;
|
||||
}
|
||||
#else
|
||||
gohci.regs = (struct ohci_regs *)CONFIG_SYS_USB_OHCI_REGS_BASE;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue