media: ov7670: Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 19 Jul 2017 03:34:19 +0000 (23:34 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 8 Aug 2017 10:24:58 +0000 (06:24 -0400)
commit1fc86ad052fc051639df1f60faeb619dbe567e07
tree4d0bf883c7aca950550344f7232ff723f3659e52
parent011dfab80543019d01f66665734f50f5a4b26e6d
media: ov7670: 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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov7670.c