]> git.baikalelectronics.ru Git - kernel.git/commit
media: smiapp: Register sensor after enabling runtime PM on the device
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 11 Oct 2019 11:16:02 +0000 (08:16 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 24 Oct 2019 21:56:18 +0000 (18:56 -0300)
commit229df466f0049b613a4dd097e00f7db420c98f4e
tree35f005a2e3fd622a786f995deb0d82010583642b
parentbac8a9c6c39cf20e4c5c3b43e56b8cd33855e54d
media: smiapp: Register sensor after enabling runtime PM on the device

Earlier it was possible that the parts of the driver that assumed runtime
PM was enabled were being called before runtime PM was enabled in the
driver's probe function. So enable runtime PM before registering the
sub-device.

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