Rui Miguel Silva
1b904b2eb9
media: ov2680: fix null dereference at power on
...
[ Upstream commit c45fbdf24c61a7b7a37f1b3bbd46f054637a3627 ]
Swapping the order between v4l2 subdevice registration and checking chip
id in b7a417628abf ("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: b7a417628abf ("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-11-20 18:46:52 +01:00
2019-11-20 18:46:42 +01:00
2019-11-20 18:46:06 +01:00
2019-09-21 07:16:57 +02:00
2019-09-06 10:21:56 +02:00
2019-11-20 18:46:47 +01:00
2019-11-10 11:27:35 +01:00
2019-11-20 18:47:42 +01:00
2019-09-21 07:16:51 +02:00
2019-11-20 18:47:11 +01:00
2019-11-20 18:45:21 +01:00
2019-07-26 09:14:12 +02:00
2019-10-29 09:20:08 +01:00
2019-11-20 18:47:43 +01:00
2019-10-11 18:20:46 +02:00
2019-11-20 18:46:20 +01:00
2019-10-07 18:57:04 +02:00
2019-11-20 18:47:15 +01:00
2019-11-20 18:45:26 +01:00
2019-11-20 18:47:41 +01:00
2019-09-21 07:16:53 +02:00
2019-09-06 10:22:19 +02:00
2019-11-20 18:47:22 +01:00
2019-11-20 18:45:56 +01:00
2019-11-12 19:20:54 +01:00
2019-11-20 18:47:31 +01:00
2019-10-05 13:09:54 +02:00
2019-11-20 18:47:29 +01:00
2019-11-20 18:47:22 +01:00
2019-11-20 18:45:21 +01:00
2019-11-20 18:47:53 +01:00
2019-11-20 18:45:16 +01:00
2019-11-12 19:21:14 +01:00
2019-11-10 11:27:31 +01:00
2019-11-10 11:27:48 +01:00
2019-10-05 13:09:45 +02:00
2019-10-07 18:57:02 +02:00
2019-11-06 13:05:20 +01:00
2019-11-20 18:47:53 +01:00
2019-10-29 09:20:07 +01:00
2019-10-07 18:57:08 +02:00
2019-11-20 18:47:31 +01:00
2019-11-20 18:45:20 +01:00
2019-11-20 18:45:55 +01:00
2019-11-20 18:47:48 +01:00
2019-11-12 19:20:30 +01:00
2019-10-11 18:21:18 +02:00
2019-10-11 18:21:20 +02:00
2019-11-12 19:21:11 +01:00
2019-11-20 18:46:31 +01:00
2019-11-20 18:47:00 +01:00
2019-11-20 18:47:00 +01:00
2019-10-05 13:10:04 +02:00
2019-11-20 18:47:39 +01:00
2019-08-06 19:06:55 +02:00
2019-11-20 18:47:35 +01:00
2019-11-20 18:46:41 +01:00
2019-11-10 11:27:55 +01:00
2019-11-20 18:47:01 +01:00
2019-08-04 09:30:56 +02:00
2019-10-11 18:21:17 +02:00
2019-08-06 19:06:52 +02:00
2019-11-10 11:27:15 +01:00
2019-11-20 18:45:25 +01:00
2019-11-20 18:47:52 +01:00
2019-11-20 18:47:07 +01:00
2019-11-20 18:47:52 +01:00
2019-11-20 18:47:30 +01:00
2019-11-20 18:46:38 +01:00
2019-11-20 18:45:22 +01:00
2019-11-20 18:47:11 +01:00
2019-11-20 18:47:16 +01:00
2019-11-10 11:27:28 +01:00
2019-11-20 18:45:20 +01:00
2019-10-11 18:21:19 +02:00
2019-11-06 13:06:12 +01:00
2019-11-20 18:46:54 +01:00
2019-11-20 18:47:31 +01:00
2019-11-20 18:47:53 +01:00
2019-11-20 18:47:32 +01:00
2019-09-16 08:22:25 +02:00
2019-10-07 18:56:30 +02:00
2019-11-06 13:06:04 +01:00
2019-10-11 18:21:15 +02:00
2019-10-11 18:21:13 +02:00