[media] ad9389b: set is_private only after successfully creating all controls
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 22 Aug 2013 09:15:31 +0000 (06:15 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 24 Aug 2013 07:31:12 +0000 (04:31 -0300)
commit265d3b55ffdb5e9cf74fd85e2a841b04a82f3355
treecb976586046a691439cc7b30e1cbbf9eb6e377fd
parent8c0eadb88bc67cee8b83e08f5743bd7c378efdd9
[media] ad9389b: set is_private only after successfully creating all controls

is_private was set right after creating each control, but the control pointer
might be NULL in case of an error. Set it after all controls were successfully
created, since that guarantees that all control pointers are non-NULL.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/ad9389b.c