]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clk: renesas: cpg-mssr: Fix inverted debug check
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 3 Oct 2016 11:03:38 +0000 (13:03 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 17 Oct 2016 15:18:43 +0000 (17:18 +0200)
The intention was to enable the checks if debugging is enabled, not
disabled.

Fixes: f793d1e51705b276 ("clk: shmobile: Add new CPG/MSSR driver core")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/renesas-cpg-mssr.c

index a1d5b7431ec479b5ec23a054d1bc7967b88345bf..057bb8759e38ab53e8a1f7fd55fe18831cbcb286 100644 (file)
@@ -33,9 +33,9 @@
 #include "clk-div6.h"
 
 #ifdef DEBUG
-#define WARN_DEBUG(x)  do { } while (0)
-#else
 #define WARN_DEBUG(x)  WARN_ON(x)
+#else
+#define WARN_DEBUG(x)  do { } while (0)
 #endif