Sakari Ailus fda0f59a3a media: ov7251: Fix multiple problems in s_stream callback
The s_stream callback had several issues:

- If pm_runtime_get_sync() fails, the usage_count is not put.

- The sensor wasn't suspended if s_stream(subdev, 1) failed.

Fix this.

Fixes: ("media: i2c: Add pm_runtime support to ov7251")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-07-08 15:12:17 +01:00
..
2021-02-01 10:03:45 +01:00
2022-03-04 09:36:26 +02:00
2021-09-30 10:07:35 +02:00
2021-09-08 11:50:26 -07:00