The phy is always connected in xemacps_open() so it should only
disconnect it in its cleanup counterpart xemapcs_close(). Remove
the extraneous phy_disconnect() in xemacps_remove accordingly.
Reported-by: Davor Joja <davorjoja@logicbricks.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
if (ndev) {
lp = netdev_priv(ndev);
- if (lp->phy_dev)
- phy_disconnect(lp->phy_dev);
mdiobus_unregister(lp->mii_bus);
kfree(lp->mii_bus->irq);