/* phy_disconnect - disable interrupts, stop state machine, and detach a  */
void phy_disconnect(struct phy_device *phydev)
/* phy_disconnect - disable interrupts, stop state machine, and detach a  */
void phy_disconnect(struct phy_device *phydev)
{
	if (phydev->irq > 0)
		phy_stop_interrupts(phydev);
	phy_stop_machine(phydev);
	phydev->adjust_link = NULL;
	phy_detach(phydev);
}