]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ARM: omap: fix section mismatch error for omap_4430sdp_display_init()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 7 Feb 2012 10:41:34 +0000 (10:41 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 13 Feb 2012 10:00:38 +0000 (10:00 +0000)
WARNING: arch/arm/mach-omap2/built-in.o(.text+0xb798): Section mismatch in reference from the function omap_4430sdp_display_init() to the function .init.text:omap_display_init()
The function omap_4430sdp_display_init() references
the function __init omap_display_init().
This is often because omap_4430sdp_display_init lacks a __init
annotation or the annotation of omap_display_init is wrong.

Fix this by adding __init to omap_4430sdp_display_init().

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/board-4430sdp.c

index f2682e39ff58b8ccacf0d686fa79a7aa92dbf00c..50d2412ff395450beb013dd501ea1da31a88038e 100644 (file)
@@ -814,7 +814,7 @@ static struct omap_dss_board_info sdp4430_dss_data = {
        .default_device = &sdp4430_lcd_device,
 };
 
-static void omap_4430sdp_display_init(void)
+static void __init omap_4430sdp_display_init(void)
 {
        int r;