• Doug Berger's avatar
    net: bcmgenet: use dev->phydev instead of priv->phydev · 6c97f010
    Doug Berger authored
    Now that the software reset of the PHY has been removed it is no
    longer necessary to retain a private pointer to the phydev for
    use when the PHY is detached (which isn't generally safe anyway).
    
    The driver now uses the phydev member attached to the net_device.
    
    For ethtool commands that have a PHY component, an explicit check
    is made to prevent accessing an invalid phydev pointer when one
    is not attached (e.g. interface is down).
    Signed-off-by: default avatarDoug Berger <opendmb@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6c97f010
bcmmii.c 14.2 KB