From patchwork Sat May 9 20:37:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 245400 List-Id: U-Boot discussion From: marek.vasut at gmail.com (Marek Vasut) Date: Sat, 9 May 2020 22:37:28 +0200 Subject: [PATCH 1/2] sh: r2dplus: Enable board_eth_init only for non-DM case Message-ID: <20200509203729.821800-1-marek.vasut+renesas@gmail.com> 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 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