diff options
author | Matt Wagantall <mattw@codeaurora.org> | 2011-01-26 16:20:54 -0800 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2011-01-28 11:20:48 -0800 |
commit | d64560fe3e9bf64b2050ceeb6b6946ba2a4efda0 (patch) | |
tree | d58ae274bf9d3f7c231eb8d8761c8e50a670bd36 /arch/arm/mach-msm/clock.h | |
parent | ce1c80fbaa3b8e132d4e430cbf7cb4a9cd28b2d5 (diff) | |
download | lwn-d64560fe3e9bf64b2050ceeb6b6946ba2a4efda0.tar.gz lwn-d64560fe3e9bf64b2050ceeb6b6946ba2a4efda0.zip |
msm: clock: Move debugfs code from clock.c to clock-debug.c
The clock debugfs code is large enough, and easy enough to separate,
that it deserves its own file which is compiled only when
CONFIG_DEBUG_FS is enabled.
Also, cleanup header file #includes that are no longer required.
Reviewed-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/clock.h')
-rw-r--r-- | arch/arm/mach-msm/clock.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/clock.h b/arch/arm/mach-msm/clock.h index 6a0cadeabb9d..70216b0e9681 100644 --- a/arch/arm/mach-msm/clock.h +++ b/arch/arm/mach-msm/clock.h @@ -17,6 +17,7 @@ #ifndef __ARCH_ARM_MACH_MSM_CLOCK_H #define __ARCH_ARM_MACH_MSM_CLOCK_H +#include <linux/init.h> #include <linux/list.h> #include <mach/clk.h> @@ -61,4 +62,12 @@ struct clk { #define CLK_MAX CLKFLAG_MAX #define CLK_MINMAX (CLK_MIN | CLK_MAX) +#ifdef CONFIG_DEBUG_FS +int __init clock_debug_init(void); +int __init clock_debug_add(struct clk *clock); +#else +static inline int __init clock_debug_init(void) { return 0; } +static inline int __init clock_debug_add(struct clk *clock) { return 0; } +#endif + #endif |