From: Dirk Behme Date: Fri, 18 May 2007 07:14:25 +0000 (+0200) Subject: ARM: OMAP: Fix section mismatch warning in dsp_common.c X-Git-Tag: v2.6.22-omap1~139 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6f63c8a082b590738f2f649591c9dde406e50823;p=linux-2.6-omap-h63xx.git ARM: OMAP: Fix section mismatch warning in dsp_common.c Fix WARNING: arch/arm/plat-omap/built-in.o - Section mismatch: reference to .init.text: from .text between 'dsp_cpustat_update' (at offset 0x7c40) and 'do_release_mem' If init_dsp isn't set, dsp_cpustat_update() calls omap_dsp_init(). So don't declare omap_dsp_init() as __init. Signed-off-by: Dirk Behme Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/dsp/dsp_common.c b/arch/arm/plat-omap/dsp/dsp_common.c index cfb2bbc0e49..c5d634df4eb 100644 --- a/arch/arm/plat-omap/dsp/dsp_common.c +++ b/arch/arm/plat-omap/dsp/dsp_common.c @@ -268,7 +268,7 @@ void dsp_reset_idle_boot_base(void) { } static int init_done; -static int __init omap_dsp_init(void) +static int omap_dsp_init(void) { mutex_init(&cpustat.lock);