diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2020-11-28 11:43:11 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-15 22:36:12 +0300 |
commit | c343e8c0bfe5be18d766c25d9d1de3d843793109 (patch) | |
tree | a451438c32c194491b6798ccdad90c0fc5ed09d9 /drivers/pci_endpoint | |
parent | 7addd3c6df61e10e74acf0859f65a82f28b771f5 (diff) | |
download | u-boot-c343e8c0bfe5be18d766c25d9d1de3d843793109.tar.xz |
common: board_r: Drop initr_pci_ep wrapper
Add a return value to pci_ep_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_endpoint')
-rw-r--r-- | drivers/pci_endpoint/pci_ep-uclass.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci_endpoint/pci_ep-uclass.c b/drivers/pci_endpoint/pci_ep-uclass.c index 38a5f08376..aa89701de8 100644 --- a/drivers/pci_endpoint/pci_ep-uclass.c +++ b/drivers/pci_endpoint/pci_ep-uclass.c @@ -210,7 +210,7 @@ UCLASS_DRIVER(pci_ep) = { .flags = DM_UC_FLAG_SEQ_ALIAS, }; -void pci_ep_init(void) +int pci_ep_init(void) { struct udevice *dev; @@ -219,4 +219,6 @@ void pci_ep_init(void) uclass_next_device_check(&dev)) { ; } + + return 0; } |