From: Vaibhav Hiremath Date: Fri, 12 Feb 2016 19:45:11 +0000 (+0530) Subject: greybus: arche-platform: Cancel delayed_work in driver remove fn X-Git-Tag: v4.14-rc1~2366^2~378^2~21^2~709 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49e6e04bb44e4f3bf2c6d3c2c096257da2cb54ff;p=platform%2Fkernel%2Flinux-rpi.git greybus: arche-platform: Cancel delayed_work in driver remove fn This is a bug fix, where as part of cleanup, delayed work was not canceled in driver remove function. So fix it. Testing Done: Tested on EVT1.2 and DB3.5 platform. Signed-off-by: Vaibhav Hiremath Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c index f367430..3b7974d 100644 --- a/drivers/staging/greybus/arche-platform.c +++ b/drivers/staging/greybus/arche-platform.c @@ -262,6 +262,7 @@ static int arche_platform_remove(struct platform_device *pdev) { struct arche_platform_drvdata *arche_pdata = platform_get_drvdata(pdev); + cancel_delayed_work_sync(&arche_pdata->delayed_work); device_for_each_child(&pdev->dev, NULL, arche_remove_child); arche_platform_cleanup(arche_pdata); platform_set_drvdata(pdev, NULL);