diff options
author | Roland Stigge <stigge@antcom.de> | 2012-02-08 15:41:04 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-02-09 18:55:49 -0500 |
commit | 0cf0d815ba0d09281c5671b82a83c4220a606dc4 (patch) | |
tree | 8b13837db5d7ed9aeaac9e6eb510bd4cc5b0d639 /arch | |
parent | 4ee1c5716d10e30269b64e393cc4a5bf17afee38 (diff) |
ARM: LPC32xx: clock.c: warning fix
This patch removes the debug warning on local_clk_disable() as done in Kevin
Wells' driver update
Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Kevin Wells <kevin.wells@nxp.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-lpc32xx/clock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c index 1e027514096d..39dcbd0e68b2 100644 --- a/arch/arm/mach-lpc32xx/clock.c +++ b/arch/arm/mach-lpc32xx/clock.c | |||
@@ -903,8 +903,6 @@ static inline void clk_unlock(void) | |||
903 | 903 | ||
904 | static void local_clk_disable(struct clk *clk) | 904 | static void local_clk_disable(struct clk *clk) |
905 | { | 905 | { |
906 | WARN_ON(clk->usecount == 0); | ||
907 | |||
908 | /* Don't attempt to disable clock if it has no users */ | 906 | /* Don't attempt to disable clock if it has no users */ |
909 | if (clk->usecount > 0) { | 907 | if (clk->usecount > 0) { |
910 | clk->usecount--; | 908 | clk->usecount--; |