mirror of
https://github.com/torvalds/linux.git
synced 2026-07-29 02:31:27 +02:00
media: ccs: No need to set streaming to false in power off
Streaming will have been stopped before the sensor is powered off, and so sensor->streaming is also false already. Do not set it as part of the runtime suspend callback. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
04ec8572f8
commit
02cab4a097
|
|
@ -1704,7 +1704,6 @@ static int ccs_power_off(struct device *dev)
|
|||
usleep_range(5000, 5000);
|
||||
regulator_bulk_disable(ARRAY_SIZE(ccs_regulators),
|
||||
sensor->regulators);
|
||||
sensor->streaming = false;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user