media: driver: bdisp: add pm_runtime_disable in the error handling code
authorDongliang Mu <mudongliangabcd@gmail.com>
Tue, 19 Oct 2021 03:08:08 +0000 (05:08 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 30 Nov 2021 11:06:09 +0000 (12:06 +0100)
commit0529c0f55da87a338a07f3394f55c4873a937be6
tree548d06d4d75fc92a34696cf2ff4618923ae36923
parentfb394f3fc8c32564d15e48f29e89b736b68441cd
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>
drivers/media/platform/sti/bdisp/bdisp-v4l2.c