ARM: OMAP: omap_common_late_init may be unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 5 Jul 2013 14:20:17 +0000 (16:20 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 5 Jul 2013 21:07:41 +0000 (23:07 +0200)
Some OMAP SoCs use this function while others do not, and that
causes a warning when building multi_v7_defconfig. Marking the
function __maybe_unused silences the harmless warning without the
need to add complex #ifdef logic.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/io.c

index fe3253a100e740c92688f374557d2470ed6494cb..4a3f06f02859cbed9027288e0461691e097ba3bd 100644 (file)
@@ -394,7 +394,7 @@ static void __init omap_hwmod_init_postsetup(void)
        omap_pm_if_early_init();
 }
 
-static void __init omap_common_late_init(void)
+static void __init __maybe_unused omap_common_late_init(void)
 {
        omap_mux_late_init();
        omap2_common_pm_late_init();