aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/phy_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/phy/phy_device.c')
-rw-r--r--drivers/net/phy/phy_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
index e275df8c55bc..49328e050505 100644
--- a/drivers/net/phy/phy_device.c
+++ b/drivers/net/phy/phy_device.c
@@ -644,7 +644,7 @@ static int phy_probe(struct device *dev)
644 if (!(phydrv->flags & PHY_HAS_INTERRUPT)) 644 if (!(phydrv->flags & PHY_HAS_INTERRUPT))
645 phydev->irq = PHY_POLL; 645 phydev->irq = PHY_POLL;
646 646
647 spin_lock(&phydev->lock); 647 spin_lock_bh(&phydev->lock);
648 648
649 /* Start out supporting everything. Eventually, 649 /* Start out supporting everything. Eventually,
650 * a controller will attach, and may modify one 650 * a controller will attach, and may modify one
@@ -658,7 +658,7 @@ static int phy_probe(struct device *dev)
658 if (phydev->drv->probe) 658 if (phydev->drv->probe)
659 err = phydev->drv->probe(phydev); 659 err = phydev->drv->probe(phydev);
660 660
661 spin_unlock(&phydev->lock); 661 spin_unlock_bh(&phydev->lock);
662 662
663 return err; 663 return err;
664 664