]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: clk_disable_unused: init section mismatch
authorKevin Hilman <khilman@mvista.com>
Fri, 2 Nov 2007 00:12:02 +0000 (17:12 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 15 Nov 2007 20:54:23 +0000 (12:54 -0800)
Fix the following warning when OMAP_RESET_CLOCKS is enabled:

WARNING: vmlinux.o(.data+0x33a0): Section mismatch: reference to .init.text:omap2_clk_disable_unused (between 'omap2_clk_functions' and 'osc_ck')

omap2_clk_disable_unused cannot be declared __init as it part of a
struct where the rest of the functions are not __init.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/clock.h

index 1ce6d57fdbe125569a40d6c7aab662e5852d5a0f..668560dba557b81057fd7f192ee3db4dc5be5acb 100644 (file)
@@ -739,7 +739,7 @@ int omap2_clk_set_parent(struct clk *clk, struct clk *new_parent)
  *-------------------------------------------------------------------------*/
 
 #ifdef CONFIG_OMAP_RESET_CLOCKS
-void __init omap2_clk_disable_unused(struct clk *clk)
+void omap2_clk_disable_unused(struct clk *clk)
 {
        u32 regval32, v;
 
index e14446dd01d179dec6a3ec4a2f4da9d8039f8f61..4cba747bd176b03b62bea0505e10d3eaaa752969 100644 (file)
@@ -30,7 +30,7 @@ int omap2_clk_set_rate(struct clk *clk, unsigned long rate);
 int omap2_clk_set_parent(struct clk *clk, struct clk *new_parent);
 
 #ifdef CONFIG_OMAP_RESET_CLOCKS
-void __init omap2_clk_disable_unused(struct clk *clk);
+void omap2_clk_disable_unused(struct clk *clk);
 #else
 #define omap2_clk_disable_unused       NULL
 #endif