]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
hwrng: exynos - Fix unbalanced PM runtime get/puts
authorDaniel Thompson <daniel.thompson@linaro.org>
Fri, 16 Oct 2015 16:01:51 +0000 (17:01 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Oct 2015 14:10:46 +0000 (22:10 +0800)
commitf02b7d0c7b433b9a8175ac9027391272877a43ce
tree314e976867de305f7069a1f00a0dcd4957167ba7
parent839a42af9441982311f33241529f711f23c857c8
hwrng: exynos - Fix unbalanced PM runtime get/puts

Currently this driver calls pm_runtime_get_sync() rampantly
but never puts anything back. This makes it impossible for the
device to autosuspend properly; it will remain fully active
after the first use.

Fix in the obvious way.

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/exynos-rng.c