media: ccs: Partially revert "media: i2c: Use pm_runtime_resume_and_get()"
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 29 Sep 2023 09:00:42 +0000 (12:00 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 7 Oct 2023 08:55:48 +0000 (10:55 +0200)
commit2428e585b1e79efc1ecc3eaf64ad777e1272b792
treef2768ff4c5399c70839fe7bded8d4671e83a900e
parentd8bca3ed1d70652e68b07799171d471026b7b3e2
media: ccs: Partially revert "media: i2c: Use pm_runtime_resume_and_get()"

ccs_pm_get_init() depends on the return values > 0 of
pm_runtime_get_sync(), thus it can't use pm_runtime_resume_and_get().
There's even a comment in the driver on this, a few lines above the code.

Fixes: aa0adb399d09 ("media: i2c: Use pm_runtime_resume_and_get()")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ccs/ccs-core.c