Skip to content
Commit d7a4e582 authored by Jitao Shi's avatar Jitao Shi Committed by Thierry Reding
Browse files

pwm: mtk-disp: Adjust the clocks to avoid them mismatch



The clks "main" and "mm" are prepared in .probe() (and unprepared in
.remove()). This results in the clocks being on during suspend which
results in unnecessarily increased power consumption.

Remove the clock operations from .probe() and .remove(). Add the
clk_prepare_enable() in .enable() and the clk_disable_unprepare() in
.disable().

Signed-off-by: default avatarJitao Shi <jitao.shi@mediatek.com>
[thierry.reding@gmail.com: squashed in fixup patch]
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent dd8f6b29
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment