media: smiapp: Use pm_runtime_get_if_active
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 16 Oct 2019 11:19:30 +0000 (13:19 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 23 Jun 2020 13:14:06 +0000 (15:14 +0200)
commitc1d7a2c8259c0a65189542d3e5d7a80f9ea012b6
treee5171683c5697dd7a9893a7a5612ac55d6be9fa3
parent52db11f38333f90dcdc9a12a09f9ec990516025d
media: smiapp: Use pm_runtime_get_if_active

Use the convenience function pm_runtime_get_if_active() instead of a
number of calls to runtime PM to figure out if the device was already
powered up.

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