media: max2175: Propagate the real error on devm_clk_get() failure
authorFabio Estevam <fabio.estevam@nxp.com>
Sun, 27 Aug 2017 16:30:35 +0000 (12:30 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 27 Aug 2017 22:14:11 +0000 (18:14 -0400)
commit9a45bf28bc39ff6ed45a008f7201289c8e9e60a6
tree551bde7a7ca24c951a4e7949c5a21c02c55532ad
parent82cf5f4f6b08975bffddaa60e1d8ddcf46776494
media: max2175: Propagate the real error on devm_clk_get() failure

When devm_clk_get() fails we should return the real error code
instead of always returning -ENODEV.

This allows defer probe to happen in the case the clock provider has
not been enabled by the time max2175 driver gets probed.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/max2175.c