From: Devendra Naga Date: Sat, 13 Apr 2013 14:46:51 +0000 (+0530) Subject: staging: gdm72xx: cancel work when driver unloads X-Git-Tag: v3.10-rc1~192^2~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0352cb71d3d573a33af92d320f29f1c79d71b8b;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Devendra Naga Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gdm72xx/gdm_sdio.c b/drivers/staging/gdm72xx/gdm_sdio.c index 695762b..047a4d7 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);