]> 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>
Wed, 20 Mar 2013 04:07:36 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Mar 2013 04:22:56 +0000 (15:22 +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;