diff --git a/drivers/clk/clk.h b/drivers/clk/clk.h index 99a02ba422fd..5b1a3b47c4be 100644 --- a/drivers/clk/clk.h +++ b/drivers/clk/clk.h @@ -26,9 +26,6 @@ struct clk *clk_hw_create_clk(struct device *dev, struct clk_hw *hw, const char *dev_id, const char *con_id); void __clk_put(struct clk *clk); -/* Debugfs API to print the enabled clocks */ -void clock_debug_print_enabled(void); - #else /* All these casts to avoid ifdefs in clkdev... */ static inline struct clk * diff --git a/drivers/cpuidle/lpm-levels.c b/drivers/cpuidle/lpm-levels.c index 39a8f78fe9d3..f8e1bb3a0e10 100644 --- a/drivers/cpuidle/lpm-levels.c +++ b/drivers/cpuidle/lpm-levels.c @@ -39,7 +39,7 @@ #include #include "lpm-levels.h" #include -#include "../clk/clk.h" +#include #define CREATE_TRACE_POINTS #include diff --git a/include/linux/clk.h b/include/linux/clk.h index 18b7b95a8253..7bc1effbf769 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -982,4 +982,11 @@ static inline struct clk *of_clk_get_from_provider(struct of_phandle_args *clksp } #endif +#ifdef CONFIG_COMMON_CLK_QCOM_DEBUG +/* Debugfs API to print the enabled clocks */ +void clock_debug_print_enabled(void); +#else +static inline void clock_debug_print_enabled(void){} +#endif + #endif