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>
This commit is contained in:
Родитель
2bb590b80b
Коммит
c0352cb71d
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче