Commit afac1d34 authored by Samuel Holland's avatar Samuel Holland Committed by David S. Miller
Browse files

net: stmmac: dwmac-sun8i: Remove unnecessary PHY power check



sun8i_dwmac_unpower_internal_phy already checks if the PHY is powered,
so there is no need to do it again here.

Reviewed-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 557ef2df
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -1018,10 +1018,8 @@ static void sun8i_dwmac_exit(struct platform_device *pdev, void *priv)
{
{
	struct sunxi_priv_data *gmac = priv;
	struct sunxi_priv_data *gmac = priv;


	if (gmac->variant->soc_has_internal_phy) {
	if (gmac->variant->soc_has_internal_phy)
		if (gmac->internal_phy_powered)
		sun8i_dwmac_unpower_internal_phy(gmac);
		sun8i_dwmac_unpower_internal_phy(gmac);
	}


	clk_disable_unprepare(gmac->tx_clk);
	clk_disable_unprepare(gmac->tx_clk);