From: Marek Vasut Date: Sat, 9 May 2020 14:07:18 +0000 (+0200) Subject: sh: r2dplus: Enable board_eth_init only for non-DM case X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=f6b5d51be5d843ef5b9bf0c89ab1d56fcb0dc2d1;p=u-boot.git 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 --- 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