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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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: