[media] mt9p031: Check return value of clk_prepare_enable/clk_set_rate
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Tue, 21 Jan 2014 05:20:57 +0000 (02:20 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 24 Feb 2014 16:12:53 +0000 (13:12 -0300)
commitee2d16d7b3c95a65ed0434841568bd3f82712338
tree07e8c3bb0d77060d4eabcdf4ccde894e4eeb10b9
parenta970449e40789a0056424668da5b56f57569ea73
[media] mt9p031: Check return value of clk_prepare_enable/clk_set_rate

clk_set_rate(), clk_prepare_enable() functions can fail, so check the return
values to avoid surprises.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/mt9p031.c