]> git.baikalelectronics.ru Git - kernel.git/commit
media: atmel: atmel-isc: Fix PM disable depth imbalance in atmel_isc_probe
authorMiaoqian Lin <linmq006@gmail.com>
Mon, 7 Mar 2022 08:16:37 +0000 (09:16 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:17 +0000 (11:02 +0200)
commit7f2cdaa3f570d9572cccd5243ab90720c627b28c
tree68f1e3b517147b2c9e2ad295f0a25e7b1cf403d5
parent04667516e6be20ddb4e223eee4ead37658210ffc
media: atmel: atmel-isc: Fix PM disable depth imbalance in atmel_isc_probe

The pm_runtime_enable will decrease power disable depth.
If the probe fails, we should use pm_runtime_disable() to balance
pm_runtime_enable().

Fixes: ad0bc4071c26 ("media: atmel: atmel-isc: split driver into driver base and isc")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/atmel/atmel-sama5d2-isc.c