aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/mt7621-eth/ethtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/mt7621-eth/ethtool.c')
-rw-r--r--drivers/staging/mt7621-eth/ethtool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-eth/ethtool.c b/drivers/staging/mt7621-eth/ethtool.c
index 7c059cd94e56..8270fea30cb3 100644
--- a/drivers/staging/mt7621-eth/ethtool.c
+++ b/drivers/staging/mt7621-eth/ethtool.c
@@ -53,7 +53,8 @@ static int mtk_set_link_ksettings(struct net_device *dev,
mac->phy_dev = mac->hw->phy->phy[cmd->base.phy_address];
mac->phy_flags = MTK_PHY_FLAG_PORT;
} else if (mac->hw->mii_bus) {
- mac->phy_dev = mdiobus_get_phy(mac->hw->mii_bus, cmd->base.phy_address);
+ mac->phy_dev = mdiobus_get_phy(mac->hw->mii_bus,
+ cmd->base.phy_address);
if (!mac->phy_dev)
return -ENODEV;
mac->phy_flags = MTK_PHY_FLAG_ATTACH;