mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 13:44:29 +08:00
usb, ohci: add warning if none on pci found
Signed-off-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
dc4e48d845
commit
f9c7fecbeb
@ -2047,8 +2047,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
Block a user