spi: spi-fsl-dspi: Check clk_prepare_enable() error
authorFabio Estevam <fabio.estevam@nxp.com>
Mon, 22 Aug 2016 02:05:30 +0000 (23:05 -0300)
committerMark Brown <broonie@kernel.org>
Mon, 22 Aug 2016 16:32:42 +0000 (17:32 +0100)
commit1c5ea2b4de22434b9da9c33640f47458ba093dea
treeb830fdc189126a2c2601ddfebdbdec901c66475f
parent53d89160753c7d32bb82d3bed980fd3dc3f2538a
spi: spi-fsl-dspi: Check clk_prepare_enable() error

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

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c