mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
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>
This commit is contained in:
parent
770e2da2ae
commit
9862048abf
@ -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--;
|
||||||
|
Loading…
Reference in New Issue
Block a user