]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: gdm72xx: cancel work when driver unloads
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 13 Apr 2013 14:46:51 +0000 (20:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Apr 2013 17:06:33 +0000 (10:06 -0700)
cancel the work function at driver unload stage and remove
the function from the queue

Cc: Ben Chan <benchan@chromium.org>
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_sdio.c

index 695762b0e942c9782155d430d2b14f399e450f21..047a4d77f5ee3f32602f2ccbb61d97d6786c378a 100644 (file)
@@ -689,6 +689,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);