misc: tegra_cec: add missing cancel_work_sync()

This patch just adds missing cancel_work_sync()
in the exit path of the probe().

Bug 1887171
Bug 200289389

Change-Id: I7d42ae6d035f87b5ad1b726cbe5274fbd9755f4e
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-on: http://git-master/r/1463243
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
This commit is contained in:
Nicolin Chen
2017-04-14 16:30:27 -07:00
committed by Prafull Suryawanshi
parent 5845f087dd
commit f79ab92d84

View File

@@ -649,6 +649,7 @@ static int tegra_cec_probe(struct platform_device *pdev)
return 0;
cec_error:
cancel_work_sync(&cec->work);
clk_disable(cec->clk);
clk_put(cec->clk);
#if defined(CONFIG_TEGRA_NVDISPLAY) && defined(CONFIG_TEGRA_POWERGATE)