]> git.baikalelectronics.ru Git - kernel.git/commit
media: ov5670, ov13858: Use pm_runtime_idle
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 20 Jul 2018 20:26:44 +0000 (16:26 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 31 Aug 2018 13:17:08 +0000 (09:17 -0400)
commite86ee07bd08fc34b781ec4e0156108aa66fe2fa5
treef3aca025d46aacf983affbc5ca1759db1a6cd14c
parent894bd885cde86d723caa1b06f3336b07ad07619c
media: ov5670, ov13858: Use pm_runtime_idle

Replace the calls to pm_runtime_get_noresume() and pm_runtime_put() with
pm_runtime_idle() in the driver's probe function. This will have the same
effect with fewer calls. pm_runtime_disable() in remove is sufficient as
the device is already in RPM_SUSPENDED state.

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