OSDN Git Service

[media] ov2640: Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@nxp.com>
Sun, 27 Aug 2017 16:30:38 +0000 (13:30 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 20:08:09 +0000 (17:08 -0300)
commitc3d14780249814f200317cfed1e5d288aeefb528
tree6bbc33d0a3c5f785457507fc274fa765c9b37b4f
parent877f1af154ec427d9c3c936a39a10afda95dcb97
[media] ov2640: Check the return value from clk_prepare_enable()

clk_prepare_enable() may fail, so we should better check its return value
and propagate it in the case of error.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/ov2640.c