if building a kernel without MULTI_OMAP
support, we will see a warning such as:

arch/arm/mach-omap2/io.c: In function 'omap_irq_base_init':
arch/arm/mach-omap2/io.c:322:23: warning: unused variable 'omap_irq_base'

Signed-off-by: Felipe Balbi <ba...@ti.com>
---
 arch/arm/mach-omap2/io.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index e66687b..6e81223 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -319,9 +319,9 @@ static int _set_hwmod_postsetup_state(struct omap_hwmod 
*oh, void *data)
  */
 static inline void omap_irq_base_init(void)
 {
+#ifdef MULTI_OMAP2
        extern void __iomem *omap_irq_base;
 
-#ifdef MULTI_OMAP2
        if (cpu_is_omap24xx())
                omap_irq_base = OMAP2_L4_IO_ADDRESS(OMAP24XX_IC_BASE);
        else if (cpu_is_omap34xx())
-- 
1.7.3.4.598.g85356

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to