aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/clock.h
diff options
context:
space:
mode:
authorMatt Wagantall <mattw@codeaurora.org>2011-01-26 19:20:54 -0500
committerDavid Brown <davidb@codeaurora.org>2011-01-28 14:20:48 -0500
commitd64560fe3e9bf64b2050ceeb6b6946ba2a4efda0 (patch)
treed58ae274bf9d3f7c231eb8d8761c8e50a670bd36 /arch/arm/mach-msm/clock.h
parentce1c80fbaa3b8e132d4e430cbf7cb4a9cd28b2d5 (diff)
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.h9
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 @@
17#ifndef __ARCH_ARM_MACH_MSM_CLOCK_H 17#ifndef __ARCH_ARM_MACH_MSM_CLOCK_H
18#define __ARCH_ARM_MACH_MSM_CLOCK_H 18#define __ARCH_ARM_MACH_MSM_CLOCK_H
19 19
20#include <linux/init.h>
20#include <linux/list.h> 21#include <linux/list.h>
21#include <mach/clk.h> 22#include <mach/clk.h>
22 23
@@ -61,4 +62,12 @@ struct clk {
61#define CLK_MAX CLKFLAG_MAX 62#define CLK_MAX CLKFLAG_MAX
62#define CLK_MINMAX (CLK_MIN | CLK_MAX) 63#define CLK_MINMAX (CLK_MIN | CLK_MAX)
63 64
65#ifdef CONFIG_DEBUG_FS
66int __init clock_debug_init(void);
67int __init clock_debug_add(struct clk *clock);
68#else
69static inline int __init clock_debug_init(void) { return 0; }
70static inline int __init clock_debug_add(struct clk *clock) { return 0; }
71#endif
72
64#endif 73#endif