UPSTREAM: staging: gdm72xx: cancel work when driver unloads
[cascardo/linux.git] / drivers / staging / gdm72xx / gdm_sdio.c
index 8b8ed98..6ccb41f 100644 (file)
@@ -693,6 +693,7 @@ static void sdio_wimax_remove(struct sdio_func *func)
        struct phy_dev *phy_dev = sdio_get_drvdata(func);
        struct sdiowm_dev *sdev = phy_dev->priv_dev;
 
+       cancel_work_sync(&sdev->ws);
        if (phy_dev->netdev)
                unregister_wimax_device(phy_dev);
        sdio_claim_host(func);