From 9fafe7dab9bc8a9e33e1ba5e28a3ec870d689b82 Mon Sep 17 00:00:00 2001 From: Troy Kisky Date: Tue, 7 Feb 2012 14:08:49 +0000 Subject: net: phy: make board_phy_config responsible for calling drv->config Boards may have things they want done before or after normal phy config. Letting the boards call drv->config allows them more flexibilty. Boards affected by this change are corenet_ds and mpc8544ds. Signed-off-by: Troy Kisky Acked-by: Dirk Behme --- board/freescale/mpc8544ds/mpc8544ds.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board/freescale/mpc8544ds') diff --git a/board/freescale/mpc8544ds/mpc8544ds.c b/board/freescale/mpc8544ds/mpc8544ds.c index 6fe8d396321..24a1715b495 100644 --- a/board/freescale/mpc8544ds/mpc8544ds.c +++ b/board/freescale/mpc8544ds/mpc8544ds.c @@ -261,6 +261,8 @@ int board_phy_config(struct phy_device *phydev) uint phyid; struct mii_dev *bus = phydev->bus; + if (phydev->drv->config) + phydev->drv->config(phydev); if (do_once) return 0; -- cgit v1.2.3