]> git.karo-electronics.de Git - linux-beck.git/commit
pwm: pxa: Remove clk_enabled field from struct pxa_pwm_chip
authorAxel Lin <axel.lin@ingics.com>
Sun, 31 Mar 2013 15:04:31 +0000 (23:04 +0800)
committerThierry Reding <thierry.reding@avionic-design.de>
Tue, 2 Apr 2013 09:31:37 +0000 (11:31 +0200)
commitb014a30c5991e67aa90b6ff9bd4ec16435bbcefd
treebd8053a202515f8d5d6792d6958c4e82b589a007
parent72da70e77f885ec9a79af9c13ff1c79b6136b75f
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: Axel Lin <axel.lin@ingics.com>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/pwm/pwm-pxa.c