]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/bcm63xx_enet.c
e1000e: disable broken PHY wakeup for ICH10 LOMs, use MAC wakeup instead
[karo-tx-linux.git] / drivers / net / bcm63xx_enet.c
index ecfef240a303039390088f59b6425747377f1cdc..e94a966af4186bb4db195547ac7ddc7ac957ea1f 100644 (file)
@@ -1097,7 +1097,7 @@ static int bcm_enet_stop(struct net_device *dev)
        enet_dma_writel(priv, 0, ENETDMA_IRMASK_REG(priv->tx_chan));
 
        /* make sure no mib update is scheduled */
-       flush_scheduled_work();
+       cancel_work_sync(&priv->mib_update_task);
 
        /* disable dma & mac */
        bcm_enet_disable_dma(priv, priv->tx_chan);