]> Pileus Git - ~andy/linux/blobdiff - drivers/net/bcm63xx_enet.c
[media] gspca - ov534: Propagate errors to higher level
[~andy/linux] / 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);