media: i2c: Use pm_runtime_resume_and_get()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 14 Sep 2023 17:20:54 +0000 (20:20 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 27 Sep 2023 07:39:57 +0000 (09:39 +0200)
commitb92f8f3591aca18fe677092fcc567c698368f651
treee0161c44a78b1c014f8cbc0a819689a7d67be2dd
parent20290feaaeb76cc719921aad275ccb18662a7c3a
media: i2c: Use pm_runtime_resume_and_get()

Simplify error handling by using pm_runtime_resume_and_get() instead of
pm_runtime_get_sync() with a put call in the error path.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com> (st-vgxy61)
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ccs/ccs-core.c
drivers/media/i2c/hi846.c
drivers/media/i2c/hi847.c
drivers/media/i2c/imx208.c
drivers/media/i2c/og01a1b.c
drivers/media/i2c/ov5693.c
drivers/media/i2c/ov7251.c
drivers/media/i2c/st-vgxy61.c