summaryrefslogtreecommitdiffstats
path: root/drivers/clk/renesas
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2016-10-03 13:03:38 +0200
committerGeert Uytterhoeven <geert+renesas@glider.be>2016-10-17 17:18:43 +0200
commitbc4725d9029e2c8205fbaf1105e193d1c4e463bb (patch)
treec402bc3db2850cc8b772ada2f1955366d77120ad /drivers/clk/renesas
parentclk: renesas: rcar-gen3-cpg: Always use readl()/writel() (diff)
downloadlinux-bc4725d9029e2c8205fbaf1105e193d1c4e463bb.tar.xz
linux-bc4725d9029e2c8205fbaf1105e193d1c4e463bb.zip
clk: renesas: cpg-mssr: Fix inverted debug check
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>
Diffstat (limited to 'drivers/clk/renesas')
-rw-r--r--drivers/clk/renesas/renesas-cpg-mssr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/renesas/renesas-cpg-mssr.c b/drivers/clk/renesas/renesas-cpg-mssr.c
index a1d5b7431ec4..057bb8759e38 100644
--- a/drivers/clk/renesas/renesas-cpg-mssr.c
+++ b/drivers/clk/renesas/renesas-cpg-mssr.c
@@ -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