diff options
author | Zhi Mao <zhi.mao@mediatek.com> | 2017-06-30 14:05:18 +0800 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2017-08-21 10:39:09 +0200 |
commit | e7c197ec97c3ac3ed3698be7a21d51a338582e1d (patch) | |
tree | e415c1bd31064ae802eb4b92d4a3b3f3cf9a204b /drivers/pwm/pwm-rockchip.c | |
parent | cd30798a6c17c1fa182e9b0bb85bd973776ff193 (diff) | |
download | blackbird-op-linux-e7c197ec97c3ac3ed3698be7a21d51a338582e1d.tar.gz blackbird-op-linux-e7c197ec97c3ac3ed3698be7a21d51a338582e1d.zip |
pwm: mediatek: Fix clock control issue
In order to save some power, do not prepare the top and main clocks
during mtk_pwm_probe(). Instead, prepare the clocks only when necessary
and also make sure to enable the clocks to match the semantics of the
common clock framework.
While at it, don't explicitly disable all PWM channels in ->remove()
because all users should have done that already.
Signed-off-by: Zhi Mao <zhi.mao@mediatek.com>
Acked-by: John Crispin <john@phrozen.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-rockchip.c')
0 files changed, 0 insertions, 0 deletions