]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/video/backlight/atmel-pwm-bl.c: add __init annotation
authorJingoo Han <jg1.han@samsung.com>
Tue, 26 Mar 2013 23:24:55 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:23 +0000 (17:12 +1100)
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>
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;