]> git.baikalelectronics.ru Git - kernel.git/commit
media: driver: hva: add pm_runtime_disable in the error handling code of hva_hw_probe
authorDongliang Mu <mudongliangabcd@gmail.com>
Tue, 19 Oct 2021 03:00:29 +0000 (05:00 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 30 Nov 2021 11:05:53 +0000 (12:05 +0100)
commit926b30f382cf2de14f1031034e73e36f7a7352ac
tree7c070c758f7954f41c2c0fe4835f3ed671d0f522
parent16d660998edfe19daa13d1e69b5a276886952ac0
media: driver: hva: add pm_runtime_disable in the error handling code of hva_hw_probe

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

Fix this by adding a label err_disable with pm_runtime_disable and
adjust one goto from label err_clk to err_disable.

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/hva/hva-hw.c