OSDN Git Service

media: ccs: Clean up runtime PM usage
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 18 Sep 2020 09:23:39 +0000 (11:23 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Dec 2020 11:27:32 +0000 (12:27 +0100)
commitfd5cfde331f86e7712a037e68e9e66b29eaea9fa
tree5f976475243cd327d219ef2fb895f8096edeae76
parent1b398012cee8d6c9fff15d74e462a5ace6f9ef7c
media: ccs: Clean up runtime PM usage

If pm_runtime_get_sync() fails, there's no need to set the device active
again. Also, in the same case to return the usage_count to zero,
pm_runtime_put_noidle() is enough.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ccs/ccs-core.c