]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
drivers/video/backlight/atmel-pwm-bl.c: add __init annotation
authorJingoo Han <jg1.han@samsung.com>
Mon, 29 Apr 2013 23:17:29 +0000 (16:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Apr 2013 01:28:14 +0000 (18:28 -0700)
When platform_driver_probe() is used, bind/unbind via sysfs is disabled.
Thus, __init/__exit annotations can be added to probe()/remove().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/atmel-pwm-bl.c

index 20b330dfbaabee4af4c02385a3f2a43c69adde14..a60d6afca97c99902a4ec32529a1cb3eb151fa3a 100644 (file)
@@ -118,7 +118,7 @@ static const struct backlight_ops atmel_pwm_bl_ops = {
        .update_status  = atmel_pwm_bl_set_intensity,
 };
 
-static int atmel_pwm_bl_probe(struct platform_device *pdev)
+static int __init atmel_pwm_bl_probe(struct platform_device *pdev)
 {
        struct backlight_properties props;
        const struct atmel_pwm_bl_platform_data *pdata;