From: Jean Delvare <jdelvare@suse.de>
To: linux-leds@vger.kernel.org
Cc: Bryan Wu <cooloney@gmail.com>, Richard Purdie <rpurdie@rpsys.net>
Subject: [PATCH] leds: clevo-mail: Make probe function __init
Date: Thu, 13 Mar 2014 18:56:24 +0100 [thread overview]
Message-ID: <20140313185624.4eb87d4f@endymion.delvare> (raw)
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>
---
Build tested only, no hardware.
drivers/leds/leds-clevo-mail.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- linux-3.14-rc6.orig/drivers/leds/leds-clevo-mail.c 2014-01-20 03:40:07.000000000 +0100
+++ linux-3.14-rc6/drivers/leds/leds-clevo-mail.c 2014-03-13 18:29:24.597849128 +0100
@@ -153,7 +153,7 @@ static struct led_classdev clevo_mail_le
.flags = LED_CORE_SUSPENDRESUME,
};
-static int clevo_mail_led_probe(struct platform_device *pdev)
+static int __init clevo_mail_led_probe(struct platform_device *pdev)
{
return led_classdev_register(&pdev->dev, &clevo_mail_led);
}
@@ -165,7 +165,6 @@ static int clevo_mail_led_remove(struct
}
static struct platform_driver clevo_mail_led_driver = {
- .probe = clevo_mail_led_probe,
.remove = clevo_mail_led_remove,
.driver = {
.name = KBUILD_MODNAME,
--
Jean Delvare
SUSE L3 Support
next reply other threads:[~2014-03-13 17:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-13 17:56 Jean Delvare [this message]
2014-03-13 23:16 ` [PATCH] leds: clevo-mail: Make probe function __init Bryan Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140313185624.4eb87d4f@endymion.delvare \
--to=jdelvare@suse.de \
--cc=cooloney@gmail.com \
--cc=linux-leds@vger.kernel.org \
--cc=rpurdie@rpsys.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox