net: phy: use phy_disable_interrupts in phy_stop
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 5 Mar 2018 21:34:46 +0000 (22:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 17:30:20 +0000 (12:30 -0500)
commit70a55c32ee6f3781d294d64c75380c94f4b99ae8
treeac36f30727a5796381ecb8506bdf9adfb3540ece
parent4fff2d33c707938c537b7aeb2c511226f8a20313
net: phy: use phy_disable_interrupts in phy_stop

Now that phy_disable_interrupts() can't take lock phydev->lock any longer,
we can use it to simplify phy_stop().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c