From f6b5d51be5d843ef5b9bf0c89ab1d56fcb0dc2d1 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Sat, 9 May 2020 16:07:18 +0200 Subject: [PATCH] sh: r2dplus: Enable board_eth_init only for non-DM case 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 Cc: Nobuhiro Iwamatsu --- board/renesas/r2dplus/r2dplus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/renesas/r2dplus/r2dplus.c b/board/renesas/r2dplus/r2dplus.c index e4d0967c14..0bbdb0e33a 100644 --- a/board/renesas/r2dplus/r2dplus.c +++ b/board/renesas/r2dplus/r2dplus.c @@ -46,7 +46,9 @@ void ide_set_reset(int idereset) } } +#ifndef CONFIG_DM_ETH int board_eth_init(bd_t *bis) { return pci_eth_init(bis); } +#endif -- 2.39.5