diff options
author | Alban Bedel <alban.bedel@avionic-design.de> | 2012-11-14 15:58:14 +0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2012-12-06 11:52:11 +0400 |
commit | 54b2a999a167510aa6eb54f49ef21a40946c88ba (patch) | |
tree | c59e98ae4587f541e8e63ee6144ba0e4f5b70214 /drivers/acpi | |
parent | a9a18e0691228707230df660dd56364aebf6ea47 (diff) | |
download | linux-54b2a999a167510aa6eb54f49ef21a40946c88ba.tar.xz |
pwm: lpc32xx: Properly disable the clock on device removal
A single clock is used for all PWMs meaning the clock's reference count
might be between 0 and N when .remove() is called. Instead of a single
clk_disable() call pwm_disable() on each PWM, to ensure that
clk_disable() is called for each PWM that is still enabled.
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Acked-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Acked-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions