[PATCH v3 16/20] board: apalis-imx8: remove board_phy_config duplicate

Francesco Dolcini
2023-01-16T19:09:17Z

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

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

Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
---
v3: added Reviewed-by: Fabio
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 43456e8af995..ad0986eebfc1 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