From: Alban Bedel Date: Wed, 14 Nov 2012 11:58:14 +0000 (+0100) Subject: pwm: lpc32xx: Properly disable the clock on device removal X-Git-Tag: v3.8-rc1~49^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54b2a999a167510aa6eb54f49ef21a40946c88ba;p=pandora-kernel.git 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 Acked-by: Alexandre Pereira da Silva Acked-by: Roland Stigge Signed-off-by: Thierry Reding --- Reading git-diff-tree failed