spi: s3c64xx: use error code from clk_prepare_enable()
authorAndi Shyti <andi.shyti@samsung.com>
Tue, 12 Jul 2016 10:02:13 +0000 (19:02 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 14 Jul 2016 16:28:31 +0000 (17:28 +0100)
commit25981d8281ee4cbbd6f7c5bc0f8c048ad9548037
tree63c4dd6e515a498ce9c1434f9156a5cfc09fdda4
parent60a9a964420912a4c4b66efd210d98006177695a
spi: s3c64xx: use error code from clk_prepare_enable()

If clk_prepare_enable() fails do not return -EBUSY but use the
value provided by the function itself.

Suggested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Reviewed-by: Michael Turquette <mturquette@baylibre.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-s3c64xx.c