net: stmmac: dwmac-rk: rename phy_power_on to avoid conflict
Subsystems (5)
PATCH v2 1/2 net: stmmac: dwmac-rk: rename phy_power_on to avoid conflict
Rename local function 'phy_power_on' to 'rk_phy_power_set' to avoid conflict with PHY subsystem function. Keep original error handling.
Signed-off-by Lizhe <[email protected]>
--- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +3 -3
@@ -1498,7 +1498,7 @@ static int gmac_clk_enable(struct rk_priv_data *bsp_priv, bool enable)return 0 ; } -static int phy_power_on (struct rk_priv_data *bsp_priv,bool enable) +static int rk_phy_power_set (struct rk_priv_data *bsp_priv,bool enable) {struct regulator *ldo = bsp_priv->regulator;struct device *dev = bsp_priv->dev;
@@ -1692,7 +1692,7 @@ static int rk_gmac_powerup(struct rk_priv_data *bsp_priv)dev_err (dev,"NO interface defined!\n" ); } - ret =phy_power_on (bsp_priv, true); + ret =rk_phy_power_set (bsp_priv, true);if (ret) {gmac_clk_enable (bsp_priv, false);return ret;
@@ -1713,7 +1713,7 @@ static void rk_gmac_powerdown(struct rk_priv_data *gmac)pm_runtime_put_sync (gmac->dev); -phy_power_on (gmac, false); +rk_phy_power_set (gmac, false);gmac_clk_enable (gmac, false); }
Signature · 1 line
2.17.1
Paolo Abeni
maintainerQuoted 4 lines · Lizhe
Rename local function '
phy_power_on' to 'rk_phy_power_set' to avoid conflict with PHY subsystem function. Keep original error handling.Signed-off-by Lizhe <[email protected]>
## Form letter - net-next-closed
The net-next tree is closed for new drivers, features, code refactoring and optimizations due to the merge window and the winter break. We are currently accepting bug fixes only.
Please repost when net-next reopens after Jan 2nd.
RFC patches sent for review only are obviously welcome at any time.