Re: [PATCH] media: ov2680: fix null dereference at power on

2018-11-22 Thread Sakari Ailus
Hi Rui, On Wed, Nov 21, 2018 at 10:59:55AM +, Rui Miguel Silva wrote: > 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 contr

[PATCH] media: ov2680: fix null dereference at power on

2018-11-21 Thread Rui Miguel Silva
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