]> 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)
commite6c4691064243b0d9c90f0e89ed9e3d1689c4475
treec150bc0ca945ca401cf513168a8a92c05b746468
parentf9e187ba2439563c02646ce8bdefd736fc86dc16
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