diff options
author | Kevin Hilman <khilman@ti.com> | 2012-06-22 10:40:02 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-06-22 10:40:02 -0400 |
commit | 75a4433e409b2d22cbe443b623d92047b59cbb9a (patch) | |
tree | 605bcd972e478de3d1320654159544f28821dee3 /arch/arm/mach-omap2/prm2xxx_3xxx.h | |
parent | 485802a6c524e62b5924849dd727ddbb1497cc71 (diff) |
ARM: OMAP2+: PRM: fix compile for OMAP4-only build
For OMAP4 only builds, the omap2_prm_* functions have dummy wrappers
to detect incorrect usage. However, several unrelated omap3 PRM
functions have made it inside the #else clause of the #ifdef wrapping
the omap2_prm stubs, causing them to disappear on OMAP4-only builds.
This was unnoticed until the IO chain support was added and introduced
a new function in this section which is referenced by omap_hwmod.c:
arch/arm/mach-omap2/omap_hwmod.c: In function '_reconfigure_io_chain':
arch/arm/mach-omap2/omap_hwmod.c:1665:3: error: implicit declaration of function 'omap3xxx_prm_reconfigure_io_chain' [-Werror=implicit-function-declaration]
Fix by using the #ifdef to only wrap the omap2_prm functions that
need stubs on OMAP4-only builds.
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
[paul@pwsan.com: fixed checkpatch warnings for patch description]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/prm2xxx_3xxx.h')
-rw-r--r-- | arch/arm/mach-omap2/prm2xxx_3xxx.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/prm2xxx_3xxx.h b/arch/arm/mach-omap2/prm2xxx_3xxx.h index 70ac2a19dc5f..491c72dd20a0 100644 --- a/arch/arm/mach-omap2/prm2xxx_3xxx.h +++ b/arch/arm/mach-omap2/prm2xxx_3xxx.h | |||
@@ -303,6 +303,8 @@ extern int omap2_prm_is_hardreset_asserted(s16 prm_mod, u8 shift); | |||
303 | extern int omap2_prm_assert_hardreset(s16 prm_mod, u8 shift); | 303 | extern int omap2_prm_assert_hardreset(s16 prm_mod, u8 shift); |
304 | extern int omap2_prm_deassert_hardreset(s16 prm_mod, u8 rst_shift, u8 st_shift); | 304 | extern int omap2_prm_deassert_hardreset(s16 prm_mod, u8 rst_shift, u8 st_shift); |
305 | 305 | ||
306 | #endif /* CONFIG_ARCH_OMAP4 */ | ||
307 | |||
306 | /* OMAP3-specific VP functions */ | 308 | /* OMAP3-specific VP functions */ |
307 | u32 omap3_prm_vp_check_txdone(u8 vp_id); | 309 | u32 omap3_prm_vp_check_txdone(u8 vp_id); |
308 | void omap3_prm_vp_clear_txdone(u8 vp_id); | 310 | void omap3_prm_vp_clear_txdone(u8 vp_id); |
@@ -321,8 +323,6 @@ extern void omap3xxx_prm_ocp_barrier(void); | |||
321 | extern void omap3xxx_prm_save_and_clear_irqen(u32 *saved_mask); | 323 | extern void omap3xxx_prm_save_and_clear_irqen(u32 *saved_mask); |
322 | extern void omap3xxx_prm_restore_irqen(u32 *saved_mask); | 324 | extern void omap3xxx_prm_restore_irqen(u32 *saved_mask); |
323 | 325 | ||
324 | #endif /* CONFIG_ARCH_OMAP4 */ | ||
325 | |||
326 | #endif | 326 | #endif |
327 | 327 | ||
328 | /* | 328 | /* |