|
@@ -968,10 +968,9 @@ forcedeth_link_status ( struct net_device *netdev )
|
968
|
968
|
{
|
969
|
969
|
struct forcedeth_private *priv = netdev_priv ( netdev );
|
970
|
970
|
void *ioaddr = priv->mmio_addr;
|
971
|
|
- u32 mii_status;
|
972
|
971
|
|
973
|
|
- /* Clear the MII link change status */
|
974
|
|
- mii_status = readl ( ioaddr + NvRegMIIStatus );
|
|
972
|
+ /* Clear the MII link change status by reading the MIIStatus register */
|
|
973
|
+ readl ( ioaddr + NvRegMIIStatus );
|
975
|
974
|
writel ( NVREG_MIISTAT_LINKCHANGE, ioaddr + NvRegMIIStatus );
|
976
|
975
|
|
977
|
976
|
if ( nv_update_linkspeed ( priv ) == 1 )
|