summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2020-05-09 16:07:18 +0200
committerMarek Vasut <marek.vasut+renesas@gmail.com>2020-05-29 19:20:54 +0200
commitf6b5d51be5d843ef5b9bf0c89ab1d56fcb0dc2d1 (patch)
tree8f5084ae3e4322e9b5725926621027e27bdc0612
parentab80137cc436e977ef91a154372ae5aeae3f4fb0 (diff)
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 <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
-rw-r--r--board/renesas/r2dplus/r2dplus.c2
1 files changed, 2 insertions, 0 deletions
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