mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
common: board_r: Drop initr_pci wrapper
Add a return value to pci_init and use it directly in the post-relocation init sequence, rather than using a wrapper stub. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c343e8c0bf
commit
b9f6d0f7db
4 changed files with 23 additions and 18 deletions
|
@ -454,16 +454,18 @@ int pci_hose_scan(struct pci_controller *hose)
|
|||
return pci_hose_scan_bus(hose, hose->current_busno);
|
||||
}
|
||||
|
||||
void pci_init(void)
|
||||
int pci_init(void)
|
||||
{
|
||||
hose_head = NULL;
|
||||
|
||||
/* allow env to disable pci init/enum */
|
||||
if (env_get("pcidisable") != NULL)
|
||||
return;
|
||||
return 0;
|
||||
|
||||
/* now call board specific pci_init()... */
|
||||
pci_init_board();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Returns the address of the requested capability structure within the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue