media: ov2740: Enable runtime PM before registering the async subdev
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 8 Sep 2023 08:52:12 +0000 (11:52 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 7 Oct 2023 08:55:48 +0000 (10:55 +0200)
commit1cfe77a541a5044a061afd4f7935f504cc4d4c48
tree5ecd17efdc2185d2f589cecde4ebefff7ad79c77
parent8a695a29d68e8f6e7334ae4fdcffd7e687a48d2f
media: ov2740: Enable runtime PM before registering the async subdev

Enable runtime PM before registering the async subdev as the driver UAPI
may become accessible immediately after the registration. Runtime PM needs
to be enabled by that time.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov2740.c