]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pwm: sti: Only request clock rate when needed
authorLee Jones <lee.jones@linaro.org>
Tue, 16 Aug 2016 09:35:00 +0000 (10:35 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 8 Sep 2016 08:55:08 +0000 (10:55 +0200)
commitd81738b76feee2cf8f296ef943966f3f2a0e3fce
tree9fbb3c73ddeab99a0418e417671ececd0c679a6f
parentc5f94ae639236e53970841d494d1ac2140181232
pwm: sti: Only request clock rate when needed

In the original code the clock rate was only obtained during
initialisation; however, the rate may change between then and
its use.  This patch ensures the correct rate is acquired just
before use.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-sti.c