aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2014-03-13 13:56:24 -0400
committerBryan Wu <cooloney@gmail.com>2014-03-13 18:53:31 -0400
commit0016db26c093798632ea741402215a31af447704 (patch)
tree4dbf3586e453f9843bb1cccf3f5310ef863d4b2d /drivers
parentd9e8928f83d76263d09e1a1eef0dab82e4a81a17 (diff)
leds: clevo-mail: Make probe function __init
One of the benefits of platform_driver_probe() is that you can make the probe function __init. Signed-off-by: Jean Delvare <jdelvare@suse.de> Cc: Bryan Wu <cooloney@gmail.com> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/leds/leds-clevo-mail.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/leds/leds-clevo-mail.c b/drivers/leds/leds-clevo-mail.c
index 19202f5cc299..f58a354428e3 100644
--- a/drivers/leds/leds-clevo-mail.c
+++ b/drivers/leds/leds-clevo-mail.c
@@ -153,7 +153,7 @@ static struct led_classdev clevo_mail_led = {
153 .flags = LED_CORE_SUSPENDRESUME, 153 .flags = LED_CORE_SUSPENDRESUME,
154}; 154};
155 155
156static int clevo_mail_led_probe(struct platform_device *pdev) 156static int __init clevo_mail_led_probe(struct platform_device *pdev)
157{ 157{
158 return led_classdev_register(&pdev->dev, &clevo_mail_led); 158 return led_classdev_register(&pdev->dev, &clevo_mail_led);
159} 159}
@@ -165,7 +165,6 @@ static int clevo_mail_led_remove(struct platform_device *pdev)
165} 165}
166 166
167static struct platform_driver clevo_mail_led_driver = { 167static struct platform_driver clevo_mail_led_driver = {
168 .probe = clevo_mail_led_probe,
169 .remove = clevo_mail_led_remove, 168 .remove = clevo_mail_led_remove,
170 .driver = { 169 .driver = {
171 .name = KBUILD_MODNAME, 170 .name = KBUILD_MODNAME,