summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven2018-07-06 17:16:54 +0200
committerStephen Boyd2018-07-06 19:49:27 +0200
commit40dd71c75e395d9b0343f1e646de7ab5312540cc (patch)
tree413dd9526a3e256b40e731aa5c6ed79b2c16942c /drivers/clk/clk.c
parentclk: qcom: gcc-msm8996: Disable halt check on UFS tx clock (diff)
downloadkernel-qcow2-linux-40dd71c75e395d9b0343f1e646de7ab5312540cc.tar.gz
kernel-qcow2-linux-40dd71c75e395d9b0343f1e646de7ab5312540cc.tar.xz
kernel-qcow2-linux-40dd71c75e395d9b0343f1e646de7ab5312540cc.zip
clk: Really show symbolic clock flags in debugfs
The last-minute fold-in of the ENTRY() macro did change behavior: instead of printing the symbolic name (e.g. "CLK_IS_BASIC"), it prints the expansion of it (e.g. "(1UL << (5))"). Use "#" instead of __stringify() to fix this. Fixes: a6059ab98130fb56 ("clk: Show symbolic clock flags in debugfs") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r--drivers/clk/clk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 9760b526ca31..e2ed078abd90 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -24,7 +24,6 @@
#include <linux/pm_runtime.h>
#include <linux/sched.h>
#include <linux/clkdev.h>
-#include <linux/stringify.h>
#include "clk.h"
@@ -2559,7 +2558,7 @@ static const struct {
unsigned long flag;
const char *name;
} clk_flags[] = {
-#define ENTRY(f) { f, __stringify(f) }
+#define ENTRY(f) { f, #f }
ENTRY(CLK_SET_RATE_GATE),
ENTRY(CLK_SET_PARENT_GATE),
ENTRY(CLK_SET_RATE_PARENT),