net: phy: remove phy_stop_interrupts
Interrupts have been disabled in phy_stop() already. So we can remove phy_stop_interrupts() and free the interrupt in phy_disconnect() directly. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cbfd12b3e8
commit
bb658ab7b8
@@ -818,23 +818,6 @@ int phy_start_interrupts(struct phy_device *phydev)
|
||||
}
|
||||
EXPORT_SYMBOL(phy_start_interrupts);
|
||||
|
||||
/**
|
||||
* phy_stop_interrupts - disable interrupts from a PHY device
|
||||
* @phydev: target phy_device struct
|
||||
*/
|
||||
int phy_stop_interrupts(struct phy_device *phydev)
|
||||
{
|
||||
int err = phy_disable_interrupts(phydev);
|
||||
|
||||
if (err)
|
||||
phy_error(phydev);
|
||||
|
||||
free_irq(phydev->irq, phydev);
|
||||
|
||||
return err;
|
||||
}
|
||||
EXPORT_SYMBOL(phy_stop_interrupts);
|
||||
|
||||
/**
|
||||
* phy_stop - Bring down the PHY link, and stop checking the status
|
||||
* @phydev: target phy_device struct
|
||||
|
Reference in New Issue
Block a user