]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc99d3e85c8560778fbe5c204b22b610d58b000d1
tree0d8cf9c44136db12c48fb6e9074641bcdcf38ef4
parent980ec4aa80a7cb857ea73deeb587b75aeecf954f
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