]> 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)
commit0b53aa298331e9a9b2a94c77d6e95179f8a77772
tree68f1e3b517147b2c9e2ad295f0a25e7b1cf403d5
parent66b4191bf3488bc42816e6e7d84dd20fb43b76b9
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: 1f6980f12575 ("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