]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ARM: 6351/1: s3c64xx: don't put smartq_bl_init in .init.text
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 2 Sep 2010 08:14:20 +0000 (09:14 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 2 Sep 2010 15:36:07 +0000 (16:36 +0100)
This fixes a section mismatch found by modpost:

WARNING: arch/arm/mach-s3c64xx/built-in.o(.data+0x2498): Section mismatch in reference from the variable smartq_backlight_data to the function .init.text:smartq_bl_init()
The variable smartq_backlight_data references
the function __init smartq_bl_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-s3c64xx/mach-smartq.c

index 3a9639bc3d9b24df59de162b428a6965d2bba093..cb1ebeb087631a8f39cac7a85ebf597eb4a4f19e 100644 (file)
@@ -136,7 +136,7 @@ static struct platform_device smartq_usb_otg_vbus_dev = {
        .dev.platform_data      = &smartq_usb_otg_vbus_pdata,
 };
 
-static int __init smartq_bl_init(struct device *dev)
+static int smartq_bl_init(struct device *dev)
 {
     s3c_gpio_cfgpin(S3C64XX_GPF(15), S3C_GPIO_SFN(2));