From: Kevin Hilman Date: Fri, 2 Nov 2007 00:12:02 +0000 (-0700) Subject: ARM: OMAP: clk_disable_unused: init section mismatch X-Git-Tag: v2.6.24-omap1~222 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?p=linux-2.6-omap-h63xx.git;a=commitdiff_plain;h=5a4627f670f6ac2511f2b858dbf1aee0cb0fd842 ARM: OMAP: clk_disable_unused: init section mismatch 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 1ce6d57fdbe..668560dba55 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c @@ -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; diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index e14446dd01d..4cba747bd17 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h @@ -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