1
0
Fork 0

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>
hifive-unleashed-5.1
Devendra Naga 2013-04-13 20:16:51 +05:30 committed by Greg Kroah-Hartman
parent 2bb590b80b
commit c0352cb71d
1 changed files with 1 additions and 0 deletions

View 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);