]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
p1010rdb: Don't compile board_eth_init() for DM_ETH
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Mon, 21 Sep 2020 09:45:04 +0000 (15:15 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 24 Sep 2020 12:27:44 +0000 (08:27 -0400)
The board_eth_init() is only used by legacy ethernet driver framework,
so do not compile it when DM_ETH config has been selected.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/p1010rdb/p1010rdb.c

index accf2f24e510cf2c39d4710d88b99bce3a2541a1..4c3a03e7cd95a40b714079b09cbbbef3663bba2a 100644 (file)
@@ -484,6 +484,7 @@ int checkboard(void)
        return 0;
 }
 
+#ifndef CONFIG_DM_ETH
 int board_eth_init(struct bd_info *bis)
 {
 #ifdef CONFIG_TSEC_ENET
@@ -524,6 +525,7 @@ int board_eth_init(struct bd_info *bis)
 
        return pci_eth_init(bis);
 }
+#endif
 
 #if defined(CONFIG_OF_BOARD_SETUP)
 void fdt_del_flexcan(void *blob)