diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-10-27 11:39:26 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-10-27 11:39:26 -0400 |
commit | c8e069d7a6a7963b44264a3c9e80aa4d13fd3093 (patch) | |
tree | 92b455b6f6db80a25521cc38476d4597efcc0d14 | |
parent | f3f220f046d677b618cae9533c20ecae4d463dc8 (diff) |
ARM: OMAP3: PRM: make PRCM interrupt handler related functions static
These are not needed outside the PRM driver, so make them static and
remove the prototypes from the public header.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/prm3xxx.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-omap2/prm3xxx.h | 6 |
2 files changed, 9 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/prm3xxx.c b/arch/arm/mach-omap2/prm3xxx.c index 956e0ca2fb64..cb71354c503c 100644 --- a/arch/arm/mach-omap2/prm3xxx.c +++ b/arch/arm/mach-omap2/prm3xxx.c | |||
@@ -30,6 +30,11 @@ | |||
30 | #include "cm3xxx.h" | 30 | #include "cm3xxx.h" |
31 | #include "cm-regbits-34xx.h" | 31 | #include "cm-regbits-34xx.h" |
32 | 32 | ||
33 | static void omap3xxx_prm_read_pending_irqs(unsigned long *events); | ||
34 | static void omap3xxx_prm_ocp_barrier(void); | ||
35 | static void omap3xxx_prm_save_and_clear_irqen(u32 *saved_mask); | ||
36 | static void omap3xxx_prm_restore_irqen(u32 *saved_mask); | ||
37 | |||
33 | static const struct omap_prcm_irq omap3_prcm_irqs[] = { | 38 | static const struct omap_prcm_irq omap3_prcm_irqs[] = { |
34 | OMAP_PRCM_IRQ("wkup", 0, 0), | 39 | OMAP_PRCM_IRQ("wkup", 0, 0), |
35 | OMAP_PRCM_IRQ("io", 9, 1), | 40 | OMAP_PRCM_IRQ("io", 9, 1), |
@@ -147,7 +152,7 @@ void omap3xxx_prm_dpll3_reset(void) | |||
147 | * MPU IRQs, and store the result into the u32 pointed to by @events. | 152 | * MPU IRQs, and store the result into the u32 pointed to by @events. |
148 | * No return value. | 153 | * No return value. |
149 | */ | 154 | */ |
150 | void omap3xxx_prm_read_pending_irqs(unsigned long *events) | 155 | static void omap3xxx_prm_read_pending_irqs(unsigned long *events) |
151 | { | 156 | { |
152 | u32 mask, st; | 157 | u32 mask, st; |
153 | 158 | ||
@@ -166,7 +171,7 @@ void omap3xxx_prm_read_pending_irqs(unsigned long *events) | |||
166 | * block, to avoid race conditions after acknowledging or clearing IRQ | 171 | * block, to avoid race conditions after acknowledging or clearing IRQ |
167 | * bits. No return value. | 172 | * bits. No return value. |
168 | */ | 173 | */ |
169 | void omap3xxx_prm_ocp_barrier(void) | 174 | static void omap3xxx_prm_ocp_barrier(void) |
170 | { | 175 | { |
171 | omap2_prm_read_mod_reg(OCP_MOD, OMAP3_PRM_REVISION_OFFSET); | 176 | omap2_prm_read_mod_reg(OCP_MOD, OMAP3_PRM_REVISION_OFFSET); |
172 | } | 177 | } |
@@ -182,7 +187,7 @@ void omap3xxx_prm_ocp_barrier(void) | |||
182 | * returning; otherwise, spurious interrupts might occur. No return | 187 | * returning; otherwise, spurious interrupts might occur. No return |
183 | * value. | 188 | * value. |
184 | */ | 189 | */ |
185 | void omap3xxx_prm_save_and_clear_irqen(u32 *saved_mask) | 190 | static void omap3xxx_prm_save_and_clear_irqen(u32 *saved_mask) |
186 | { | 191 | { |
187 | saved_mask[0] = omap2_prm_read_mod_reg(OCP_MOD, | 192 | saved_mask[0] = omap2_prm_read_mod_reg(OCP_MOD, |
188 | OMAP3_PRM_IRQENABLE_MPU_OFFSET); | 193 | OMAP3_PRM_IRQENABLE_MPU_OFFSET); |
@@ -202,7 +207,7 @@ void omap3xxx_prm_save_and_clear_irqen(u32 *saved_mask) | |||
202 | * barrier should be needed here; any pending PRM interrupts will fire | 207 | * barrier should be needed here; any pending PRM interrupts will fire |
203 | * once the writes reach the PRM. No return value. | 208 | * once the writes reach the PRM. No return value. |
204 | */ | 209 | */ |
205 | void omap3xxx_prm_restore_irqen(u32 *saved_mask) | 210 | static void omap3xxx_prm_restore_irqen(u32 *saved_mask) |
206 | { | 211 | { |
207 | omap2_prm_write_mod_reg(saved_mask[0], OCP_MOD, | 212 | omap2_prm_write_mod_reg(saved_mask[0], OCP_MOD, |
208 | OMAP3_PRM_IRQENABLE_MPU_OFFSET); | 213 | OMAP3_PRM_IRQENABLE_MPU_OFFSET); |
diff --git a/arch/arm/mach-omap2/prm3xxx.h b/arch/arm/mach-omap2/prm3xxx.h index bc37d42a8704..5d993d2df7ef 100644 --- a/arch/arm/mach-omap2/prm3xxx.h +++ b/arch/arm/mach-omap2/prm3xxx.h | |||
@@ -152,12 +152,6 @@ static inline void omap3xxx_prm_reconfigure_io_chain(void) | |||
152 | } | 152 | } |
153 | #endif | 153 | #endif |
154 | 154 | ||
155 | /* PRM interrupt-related functions */ | ||
156 | extern void omap3xxx_prm_read_pending_irqs(unsigned long *events); | ||
157 | extern void omap3xxx_prm_ocp_barrier(void); | ||
158 | extern void omap3xxx_prm_save_and_clear_irqen(u32 *saved_mask); | ||
159 | extern void omap3xxx_prm_restore_irqen(u32 *saved_mask); | ||
160 | |||
161 | extern void omap3xxx_prm_dpll3_reset(void); | 155 | extern void omap3xxx_prm_dpll3_reset(void); |
162 | 156 | ||
163 | extern int __init omap3xxx_prm_init(void); | 157 | extern int __init omap3xxx_prm_init(void); |