From: Tom Rini <trini@konsulko.com>
Date: Tue, 2 Aug 2022 11:33:39 +0000 (-0400)
Subject: mpc8548cds: Guard old ethernet code with !DM_ETH
X-Git-Tag: v2025.01-rc5-pxa1908~1307^2~8
X-Git-Url: http://git.dujemihanovic.xyz/img/static//%22brlog.php?a=commitdiff_plain;h=a34f971d97defcfa7daaa4971795827956a3a27d;p=u-boot.git

mpc8548cds: Guard old ethernet code with !DM_ETH

There is some code here for the legacy non-DM_ETH case, add a guard
around it.

Cc: Priyanka Jain <priyanka.jain@nxp.com>
Cc: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
---

diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/board/freescale/mpc8548cds/mpc8548cds.c
index dac821f1ac..8886d8be33 100644
--- a/board/freescale/mpc8548cds/mpc8548cds.c
+++ b/board/freescale/mpc8548cds/mpc8548cds.c
@@ -169,7 +169,8 @@ void lbc_sdram_init(void)
 #endif	/* enable SDRAM init */
 }
 
-void configure_rgmii(void)
+#ifndef CONFIG_DM_ETH
+static void configure_rgmii(void)
 {
 	unsigned short temp;
 
@@ -248,3 +249,4 @@ int board_eth_init(struct bd_info *bis)
 
 	return pci_eth_init(bis);
 }
+#endif