spi: spi-orion: check return value from clk_prepare()/clk_enable()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 21 Jun 2014 10:32:23 +0000 (11:32 +0100)
committerMark Brown <broonie@linaro.org>
Sat, 21 Jun 2014 11:00:36 +0000 (12:00 +0100)
commitc85012addd800d8fd135b9a871d5ce9b8e8c4081
treecc5e6c320bfb34a59955733b9065bfe688be45c2
parent7171511eaec5bf23fb06078f59784a3a0626b38f
spi: spi-orion: check return value from clk_prepare()/clk_enable()

clk_prepare()/clk_enable() can fail, and it's return value should
be checked.  Add the proper checking, and while we're here, convert
to clk_prepare_enable().

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-orion.c