media: i2c: ov5645: Make sure to call PM functions
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 31 Oct 2022 23:22:01 +0000 (23:22 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 06:48:54 +0000 (06:48 +0000)
commitd781dce66df8e203c6593eaa855ce6843d69819d
treee47463f6ae8a89d7fe11d6ba7fed0bf9eb65bfe7
parent9a018670dfa06b44efac08793b82a167d8a167ff
media: i2c: ov5645: Make sure to call PM functions

Make sure we call the PM functions while s_stream(0) even in case of
errors in the code flow.

v4l2-core takes care of warning the user so no need to add a warning
message in the driver.

Suggested-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov5645.c