Message ID | 20200509203729.821800-1-marek.vasut+renesas@gmail.com |
---|---|
State | New |
Headers | show |
Series | [1/2] sh: r2dplus: Enable board_eth_init only for non-DM case | expand |
diff --git a/board/renesas/r2dplus/r2dplus.c b/board/renesas/r2dplus/r2dplus.c index f2da4686c3..079f778f22 100644 --- a/board/renesas/r2dplus/r2dplus.c +++ b/board/renesas/r2dplus/r2dplus.c @@ -45,7 +45,9 @@ void ide_set_reset(int idereset) } } +#ifndef CONFIG_DM_ETH int board_eth_init(bd_t *bis) { return pci_eth_init(bis); } +#endif
The board_eth_init() is not used for DM case, enable it only for the non-DM case. This function should eventually be removed. Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu at nigauri.org> --- board/renesas/r2dplus/r2dplus.c | 2 ++ 1 file changed, 2 insertions(+)