ARM: LPC32xx: clock.c: warning fix
authorRoland Stigge <stigge@antcom.de>
Wed, 8 Feb 2012 20:41:04 +0000 (21:41 +0100)
committerOlof Johansson <olof@lixom.net>
Thu, 9 Feb 2012 23:55:49 +0000 (15:55 -0800)
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>
arch/arm/mach-lpc32xx/clock.c

index 1e02751..39dcbd0 100644 (file)
@@ -903,8 +903,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--;