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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user