media: ov7670: Return the real error code
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 19 Jul 2017 03:34:18 +0000 (23:34 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 8 Aug 2017 10:24:33 +0000 (06:24 -0400)
commit011dfab80543019d01f66665734f50f5a4b26e6d
treedc3ddcf41c13fd44649a41a198f3ee7a87bc43b8
parenteada47597b97abe956570ea47120df8833f64574
media: ov7670: Return the real error code

When devm_clk_get() fails the real error code should be propagated,
instead of always returning -EPROBE_DEFER.

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