From: Jingoo Han Date: Mon, 29 Apr 2013 23:17:29 +0000 (-0700) Subject: drivers/video/backlight/atmel-pwm-bl.c: add __init annotation X-Git-Tag: v3.10-rc1~178^2~268 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ee69c8a9470e373dfdbbe8d53b72001cf10b0923;p=karo-tx-linux.git drivers/video/backlight/atmel-pwm-bl.c: add __init annotation 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/atmel-pwm-bl.c b/drivers/video/backlight/atmel-pwm-bl.c index 20b330dfbaab..a60d6afca97c 100644 --- a/drivers/video/backlight/atmel-pwm-bl.c +++ b/drivers/video/backlight/atmel-pwm-bl.c @@ -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;