diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2013-04-13 20:16:51 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-15 10:06:33 -0700 |
commit | c0352cb71d3d573a33af92d320f29f1c79d71b8b (patch) | |
tree | c1b7a912498f73e75f584ecbb772e325e1244822 /drivers/staging/gdm72xx | |
parent | 2bb590b80b2f057d9277adc86a0858843d15fca6 (diff) | |
download | linux-stable-c0352cb71d3d573a33af92d320f29f1c79d71b8b.tar.gz linux-stable-c0352cb71d3d573a33af92d320f29f1c79d71b8b.tar.bz2 linux-stable-c0352cb71d3d573a33af92d320f29f1c79d71b8b.zip |
staging: gdm72xx: cancel work when driver unloads
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>
Diffstat (limited to 'drivers/staging/gdm72xx')
-rw-r--r-- | drivers/staging/gdm72xx/gdm_sdio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/gdm72xx/gdm_sdio.c b/drivers/staging/gdm72xx/gdm_sdio.c index 695762b0e942..047a4d77f5ee 100644 --- a/drivers/staging/gdm72xx/gdm_sdio.c +++ b/drivers/staging/gdm72xx/gdm_sdio.c @@ -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); |