[PATCH v4 6/7] ARM: LPC32xx: clock.c: warning fix

Roland Stigge stigge at antcom.de
Wed Feb 8 15:41:04 EST 2012


This patch removes the debug warning on local_clk_disable() as done in Kevin
Wells' driver update

Signed-off-by: Roland Stigge <stigge at antcom.de>
Acked-by: Wolfram Sang <w.sang at pengutronix.de>
Tested-by: Wolfram Sang <w.sang at pengutronix.de>
Acked-by: Kevin Wells <kevin.wells at nxp.com>

diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c
index d527288..0606a63 100644
--- a/arch/arm/mach-lpc32xx/clock.c
+++ b/arch/arm/mach-lpc32xx/clock.c
@@ -904,8 +904,6 @@ static inline void clk_unlock(void)
 
 static void local_clk_disable(struct clk *clk)
 {
-	WARN_ON(clk->usecount == 0);
-
 	/* Don't attempt to disable clock if it has no users */
 	if (clk->usecount > 0) {
 		clk->usecount--;



More information about the linux-arm-kernel mailing list