]> git.baikalelectronics.ru Git - kernel.git/commit
media: ov7740: Fix control handler error at the end of control init
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 12 Apr 2018 10:16:39 +0000 (06:16 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 23 Apr 2018 17:58:04 +0000 (13:58 -0400)
commitf334a46ac34933062af12129c0910ce74dced658
treec150bc0ca945ca401cf513168a8a92c05b746468
parent393416c00f9bd13e6bb228f48c950f8cd13f8f3b
media: ov7740: Fix control handler error at the end of control init

Check that no error happened during adding controls to the driver's
control handler. Print an error message and bail out if there was one.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov7740.c