From: Hans Verkuil Date: Thu, 5 Mar 2015 15:00:11 +0000 (-0300) Subject: [media] marvell-ccic: control handler fixes X-Git-Tag: omap-for-v4.2/fixes-rc1^2~111^2~433 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e4cbe677f596563060709b3af92480f873a0a6e;p=pandora-kernel.git [media] marvell-ccic: control handler fixes No controls were reported, even though the ov7670 does have controls. Two reasons for this: the v4l2_ctrl_handler_init() call must come before the ov7670 is loaded (otherwise the ov7670 won't know that its controls should be added to the bridge driver), and the v4l2_ctrl_handler_free() call at the end should only be called if the ret value is non-zero (otherwise you would just free all the controls that were just added). Signed-off-by: Hans Verkuil Acked-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed