Commit 9862048a authored by Roland Stigge's avatar Roland Stigge Committed by Olof Johansson

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: default avatarRoland Stigge <stigge@antcom.de>
Acked-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Tested-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Acked-by: default avatarKevin Wells <kevin.wells@nxp.com>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 770e2da2
...@@ -903,8 +903,6 @@ static inline void clk_unlock(void) ...@@ -903,8 +903,6 @@ static inline void clk_unlock(void)
static void local_clk_disable(struct clk *clk) static void local_clk_disable(struct clk *clk)
{ {
WARN_ON(clk->usecount == 0);
/* Don't attempt to disable clock if it has no users */ /* Don't attempt to disable clock if it has no users */
if (clk->usecount > 0) { if (clk->usecount > 0) {
clk->usecount--; clk->usecount--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment