[media] adv7604: set is_private only after successfully creating all controls
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 22 Aug 2013 09:11:17 +0000 (06:11 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 24 Aug 2013 07:31:01 +0000 (04:31 -0300)
commit8c0eadb88bc67cee8b83e08f5743bd7c378efdd9
treef9841aec8dcaa188e6956bad2026609c15ee2aa8
parentb8f0fff4279a1b85fa4b6d7d8b538c254edcb4a1
[media] adv7604: 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/adv7604.c