diff --git a/drivers/net/phy/tja110x.c b/drivers/net/phy/tja110x.c index bf680ecf3d7b..58c2618f28e4 100644 --- a/drivers/net/phy/tja110x.c +++ b/drivers/net/phy/tja110x.c @@ -946,7 +946,6 @@ static int nxp_resume(struct phy_device *phydev) if (verbosity > 0) dev_alert(&phydev->mdio.dev, "resuming PHY %x\n", phydev->mdio.addr); - mutex_lock(&phydev->lock); /* clear BMCR_PDOWN bit in MII_BMCR register */ err = phy_configure_bit(phydev, MII_BMCR, BMCR_PDOWN, 0); if (err < 0) @@ -974,23 +973,19 @@ static int nxp_resume(struct phy_device *phydev) /* reenable link control */ set_link_control(phydev, 1); - mutex_unlock(&phydev->lock); return 0; /* error handling */ phy_configure_error: - mutex_unlock(&phydev->lock); dev_err(&phydev->mdio.dev, "phy r/w error: resume failed\n"); return err; phy_transition_error: - mutex_unlock(&phydev->lock); dev_err(&phydev->mdio.dev, "power mode transition failed\n"); return err; phy_pll_error: - mutex_unlock(&phydev->lock); dev_err(&phydev->mdio.dev, "Error: PLL is unstable and not locked\n"); return err; }