Commit 0529c0f5 authored by Dongliang Mu's avatar Dongliang Mu Committed by Mauro Carvalho Chehab

media: driver: bdisp: add pm_runtime_disable in the error handling code

In the error handling code of bdisp_probe, it fails to invoke
pm_runtime_disable in many error sites.

Fix this by adding pm_runtime_disable at the label err_remove.
Signed-off-by: default avatarDongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent fb394f3f
......@@ -1394,6 +1394,7 @@ static int bdisp_probe(struct platform_device *pdev)
err_pm:
pm_runtime_put(dev);
err_remove:
pm_runtime_disable(dev);
bdisp_debugfs_remove(bdisp);
v4l2_device_unregister(&bdisp->v4l2_dev);
err_clk:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment