]> git.karo-electronics.de Git - linux-beck.git/commit
[media] adp1653: check error code of adp1653_init_controls
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 28 Jul 2011 07:59:38 +0000 (04:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 6 Aug 2011 12:43:57 +0000 (09:43 -0300)
commit31ee95ec2d3dd3b6f68d7fa0f410045652895af2
tree2464cc21d0290ec32fef93fdcdee98228353609f
parent572064280ecc9dc89227cf3797bc2144896a34f5
[media] adp1653: check error code of adp1653_init_controls

Potentially the adp1653_init_controls could return an error. In our case the
error was ignored, meanwhile it means incorrect initialization of V4L2
controls. Additionally we have to free control handler structures in case of
apd1653_init_controls or media_entity_init failure.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/adp1653.c