media: amphion: fix an issue that using pm_runtime_get_sync incorrectly
authorMing Qian <ming.qian@nxp.com>
Thu, 10 Mar 2022 06:38:56 +0000 (07:38 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 18 Mar 2022 06:29:58 +0000 (07:29 +0100)
commitf445014a2291fbee864754dfec8df42e2a44eb91
tree749b62112fb83a09743d5b1230a4b3aad5db44f0
parent298cf3dfacc971350be102ddb55bbc2916e32e34
media: amphion: fix an issue that using pm_runtime_get_sync incorrectly

pm_runtime_get_sync() also returns 1 on success.
The documentation for pm_runtime_get_sync() suggests using
pm_runtime_resume_and_get() instead

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/vpu_core.c
drivers/media/platform/amphion/vpu_dbg.c
drivers/media/platform/amphion/vpu_drv.c