commit | 519ef9b5f23c16dcb3a3a8a890baf7c084974730 | [log] [tgz] |
---|---|---|
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | Thu Jan 10 20:33:53 2019 +0100 |
committer | Thierry Reding <thierry.reding@gmail.com> | Mon Mar 04 12:52:48 2019 +0100 |
tree | 3bc283361d4fbca9dce5f3923638d6c3691b92be | |
parent | b4f9a7268dbe9d55a6bc8c3123cb518657743b76 [diff] |
pwm: imx27: Only enable the clocks once in .get_state() Currently the function pwm_imx27_get_state() of enables the clocks once unconditionally at the start, a second time if the PWM is enabled and disables unconditionally at the end. Simplify that to enable once at the start and disable conditionally at the end. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>