diff mbox series

ARM: rmobile: Only register ethernet on V2H Blanche if not DM_ETH

Message ID 20200321164414.69146-1-marek.vasut+renesas@gmail.com
State New
Headers show
Series ARM: rmobile: Only register ethernet on V2H Blanche if not DM_ETH | expand

Commit Message

Marek Vasut March 21, 2020, 4:44 p.m. UTC
If the DM_ETH is enabled, the board-specific ethernet registeration
should be disabled, make it so.

Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
---
 board/renesas/blanche/blanche.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/board/renesas/blanche/blanche.c b/board/renesas/blanche/blanche.c
index 0807967d6e..d2059ccccb 100644
--- a/board/renesas/blanche/blanche.c
+++ b/board/renesas/blanche/blanche.c
@@ -313,6 +313,7 @@  int board_init(void)
 }
 
 /* Added for BLANCHE(R-CarV2H board) */
+#ifndef CONFIG_DM_ETH
 int board_eth_init(bd_t *bis)
 {
 	int rc = 0;
@@ -337,6 +338,7 @@  int board_eth_init(bd_t *bis)
 
 	return rc;
 }
+#endif
 
 int dram_init(void)
 {