Files
linux/drivers
Rui Miguel Silva 1b904b2eb9 media: ov2680: fix null dereference at power on
[ Upstream commit c45fbdf24c ]

Swapping the order between v4l2 subdevice registration and checking chip
id in b7a417628a ("media: ov2680: don't register the v4l2 subdevice
before checking chip ID") makes the mode restore to use the sensor
controls before they are set, so move the mode restore call to s_power
after the handler setup for controls is done.

This remove also the need for the error code path in power on function.

Fixes: b7a417628a ("media: ov2680: don't register the v4l2 subdevice before checking chip ID")

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-20 18:47:53 +01:00
..
2019-05-14 19:17:53 +02:00
2019-10-05 13:09:45 +02:00
2019-10-07 18:57:08 +02:00
2019-11-20 18:47:48 +01:00
2019-11-12 19:20:30 +01:00
2019-11-20 18:47:35 +01:00
2019-07-26 09:14:05 +02:00
2018-12-21 14:15:17 +01:00
2019-11-20 18:47:52 +01:00
2018-11-13 11:08:51 -08:00
2019-09-16 08:22:25 +02:00
2019-05-31 06:46:14 -07:00
2019-10-11 18:21:13 +02:00