spi/s3c64xx: Add missing pm_runtime_put on setup fail
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 17 Oct 2013 12:45:41 +0000 (14:45 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 17 Oct 2013 23:34:09 +0000 (00:34 +0100)
commit7b8f7eef1afcb834d701f369dbd2e18b03fd7647
tree0d8cf9c44136db12c48fb6e9074641bcdcf38ef4
parent383382501193dc70fb92393eb585a39f9d39b378
spi/s3c64xx: Add missing pm_runtime_put on setup fail

pm_runtime_put() wasn't called if clock rate could not be set up in
s3c64xx_spi_setup() leading to invalid count of device pm_runtime usage.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-s3c64xx.c