Skip to contentSkip to conversation

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

PATCH New Marek Vasut 1 participant 1 message Mar 21, 2020

lore
Share & tools
lore
#0 lore raw

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

If the DM_ETH is enabled, the board-specific ethernet registeration should be disabled, make it so.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 board/renesas/blanche/blanche.c | 2 ++
 1 file changed, 2 insertions(+)
board/renesas/blanche/blanche.c +2 -0
index 0807967d6e..d2059ccccb 100644
@@ -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)
 {
Signature · 1 line
2.25.1