spi: coldfire-qspi: Enable clock before calling spi_master_resume
authorAxel Lin <axel.lin@ingics.com>
Wed, 26 Feb 2014 01:47:55 +0000 (09:47 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 10 Mar 2014 11:21:57 +0000 (11:21 +0000)
commit2aa237f4a1a72813f9684a0ce6e48288e75de479
tree86401e6f9afb4846afba3eae86a91ae9443c93d7
parent3531b717d05273e45efd2ab7903ea013aaec3fea
spi: coldfire-qspi: Enable clock before calling spi_master_resume

This ensures clock has been enabled before calling spi_master_resume().
while at it, also add checking return value of spi_master_suspend and
spi_master_resume because they may fail.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-coldfire-qspi.c