pwm: pxa: Remove clk_enabled field from struct pxa_pwm_chip
clk_enable/clk_disable maintain an enable_count, clk_prepare and clk_unprepare also maintain a prepare_count. These APIs will do prepare/enable when the first user calling these APIs, and do disable/unprepare when the corresponding counter reach 0. Thus We don't need to maintain a clk_enabled counter here. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Acked-by: NEric Miao <eric.y.miao@gmail.com> Signed-off-by: NThierry Reding <thierry.reding@avionic-design.de>
Showing
想要评论请 注册 或 登录