Commit 7d8e0ae0d78f15cd45eefa455562f824679551d2
Committed by
Priyanka Jain
1 parent
640db55253
Exists in
smarc_8mq_lf_v2020.04
and in
4 other branches
powerpc: p1010rdb: Compile legacy ethernet init function when no DM_ETH
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>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
board/freescale/p1010rdb/p1010rdb.c
... | ... | @@ -481,6 +481,7 @@ |
481 | 481 | return 0; |
482 | 482 | } |
483 | 483 | |
484 | +#ifndef CONFIG_DM_ETH | |
484 | 485 | int board_eth_init(bd_t *bis) |
485 | 486 | { |
486 | 487 | #ifdef CONFIG_TSEC_ENET |
... | ... | @@ -521,6 +522,7 @@ |
521 | 522 | |
522 | 523 | return pci_eth_init(bis); |
523 | 524 | } |
525 | +#endif | |
524 | 526 | |
525 | 527 | #if defined(CONFIG_OF_BOARD_SETUP) |
526 | 528 | void fdt_del_flexcan(void *blob) |