diff options
author | Ovidiu Panait | 2020-11-28 10:43:12 +0200 |
---|---|---|
committer | Tom Rini | 2021-01-15 14:36:12 -0500 |
commit | b9f6d0f7db9ef57f77ec3bd23a50a160534efbd8 (patch) | |
tree | 3471bcdd2358e3ea1653d04cf8c7c9a9d039f080 /drivers/pci/pci-uclass.c | |
parent | c343e8c0bfe5be18d766c25d9d1de3d843793109 (diff) |
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>
Diffstat (limited to 'drivers/pci/pci-uclass.c')
-rw-r--r-- | drivers/pci/pci-uclass.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index 4cdd06b1257..ba65f47e808 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -1842,7 +1842,7 @@ U_BOOT_DRIVER(pci_generic_drv) = { .of_match = pci_generic_ids, }; -void pci_init(void) +int pci_init(void) { struct udevice *bus; @@ -1855,4 +1855,6 @@ void pci_init(void) uclass_next_device_check(&bus)) { ; } + + return 0; } |