Commit 01dfdf6a authored by Tarang Raval's avatar Tarang Raval Committed by Hans Verkuil
Browse files

media: i2c: imx334: Enable runtime PM before sub-device registration



Runtime PM is fully initialized before calling
v4l2_async_register_subdev_sensor(). Moving the runtime PM initialization
earlier prevents potential access to an uninitialized or powered-down
device.

Signed-off-by: default avatarTarang Raval <tarang.raval@siliconsignals.io>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
parent b493cd3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment