[PATCH v2 18/22] board: apalis-imx8: remove board_phy_config duplicate

Francesco Dolcini francesco at dolcini.it
Fri Jan 13 18:17:47 CET 2023


From: Andrejs Cainikovs <andrejs.cainikovs at toradex.com>

Remove a duplicate of weak board_phy_config() implementation
in drivers/net/phy/phy.c.

Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs at toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini at toradex.com>
---
v2: new patch
---
 board/toradex/apalis-imx8/apalis-imx8.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c
index 4e2634359823..d24e1b8d174e 100644
--- a/board/toradex/apalis-imx8/apalis-imx8.c
+++ b/board/toradex/apalis-imx8/apalis-imx8.c
@@ -199,18 +199,6 @@ static void board_gpio_init(void)
 static inline void board_gpio_init(void) {}
 #endif
 
-#if IS_ENABLED(CONFIG_FEC_MXC)
-#include <miiphy.h>
-
-int board_phy_config(struct phy_device *phydev)
-{
-	if (phydev->drv->config)
-		phydev->drv->config(phydev);
-
-	return 0;
-}
-#endif
-
 /*
  * Backlight off before OS handover
  */
-- 
2.25.1



More information about the U-Boot mailing list