From: Jingoo Han Date: Fri, 9 Nov 2012 03:04:49 +0000 (+1100) Subject: drivers/video/backlight/ep93xx_bl.c: fix section mismatch X-Git-Tag: next-20121112~5^2~97 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ada89ea807aa60ffe000d22c3351b1ec743405af;p=karo-tx-linux.git drivers/video/backlight/ep93xx_bl.c: fix section mismatch Fix section mismatch warning as below: WARNING: drivers/video/backlight/built-in.o(.data+0x110): Section mismatch in reference from the variable ep93xxbl_driver to the function .init.text:ep93xxbl_probe() The variable ep93xxbl_driver references the function __init ep93xxbl_probe() 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: Jingoo Han Cc: H Hartley Sweeten Cc: Richard Purdie Signed-off-by: Andrew Morton --- diff --git a/drivers/video/backlight/ep93xx_bl.c b/drivers/video/backlight/ep93xx_bl.c index 08214e1f0958..d0c688b8acdb 100644 --- a/drivers/video/backlight/ep93xx_bl.c +++ b/drivers/video/backlight/ep93xx_bl.c @@ -60,7 +60,7 @@ static const struct backlight_ops ep93xxbl_ops = { .get_brightness = ep93xxbl_get_brightness, }; -static int __init ep93xxbl_probe(struct platform_device *dev) +static int __devinit ep93xxbl_probe(struct platform_device *dev) { struct ep93xxbl *ep93xxbl; struct backlight_device *bl; @@ -106,7 +106,7 @@ static int __init ep93xxbl_probe(struct platform_device *dev) return 0; } -static int ep93xxbl_remove(struct platform_device *dev) +static int __devexit ep93xxbl_remove(struct platform_device *dev) { struct backlight_device *bl = platform_get_drvdata(dev);