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: Dongliang Mu <mudongliangabcd@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
fb394f3fc8
commit
0529c0f55d
@ -1394,6 +1394,7 @@ err_filter:
|
||||
err_pm:
|
||||
pm_runtime_put(dev);
|
||||
err_remove:
|
||||
pm_runtime_disable(dev);
|
||||
bdisp_debugfs_remove(bdisp);
|
||||
v4l2_device_unregister(&bdisp->v4l2_dev);
|
||||
err_clk:
|
||||
|
Loading…
Reference in New Issue
Block a user