diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index bec881941483..5b5b4ddde72c 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -3107,7 +3107,11 @@ static int clk_dump_show(struct seq_file *s, void *data) } DEFINE_SHOW_ATTRIBUTE(clk_dump); +#ifdef CONFIG_ANDROID_BINDER_IPC #define CLOCK_ALLOW_WRITE_DEBUGFS +#else +#undef CLOCK_ALLOW_WRITE_DEBUGFS +#endif #ifdef CLOCK_ALLOW_WRITE_DEBUGFS /* * This can be dangerous, therefore don't provide any real compile time