aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorOvidiu Panait2020-11-28 10:43:17 +0200
committerTom Rini2021-01-15 14:36:12 -0500
commitc65abc70fb7212301b70c6ab05ba2aa22c31c69e (patch)
tree1e21ec4d13ceeabbbc63bc979adb729873b046dc /drivers/net/phy
parentce41e735231f350722221b10bb81408f88235d1d (diff)
common: board_r: Drop initr_bbmii wrapper
Add a return value to bb_miiphy_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/net/phy')
-rw-r--r--drivers/net/phy/miiphybb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/phy/miiphybb.c b/drivers/net/phy/miiphybb.c
index ba97a54c067..59a32c49130 100644
--- a/drivers/net/phy/miiphybb.c
+++ b/drivers/net/phy/miiphybb.c
@@ -105,7 +105,7 @@ int bb_miiphy_buses_num = sizeof(bb_miiphy_buses) /
sizeof(bb_miiphy_buses[0]);
#endif
-void bb_miiphy_init(void)
+int bb_miiphy_init(void)
{
int i;
@@ -124,6 +124,8 @@ void bb_miiphy_init(void)
bb_miiphy_buses[i].init(&bb_miiphy_buses[i]);
}
}
+
+ return 0;
}
static inline struct bb_miiphy_bus *bb_miiphy_getbus(const char *devname)