* [PATCH] leds: clevo-mail: Make probe function __init
@ 2014-03-13 17:56 Jean Delvare
2014-03-13 23:16 ` Bryan Wu
0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2014-03-13 17:56 UTC (permalink / raw)
To: linux-leds; +Cc: Bryan Wu, Richard Purdie
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] leds: clevo-mail: Make probe function __init
2014-03-13 17:56 [PATCH] leds: clevo-mail: Make probe function __init Jean Delvare
@ 2014-03-13 23:16 ` Bryan Wu
0 siblings, 0 replies; 2+ messages in thread
From: Bryan Wu @ 2014-03-13 23:16 UTC (permalink / raw)
To: Jean Delvare; +Cc: Linux LED Subsystem, Richard Purdie
On Thu, Mar 13, 2014 at 10:56 AM, Jean Delvare <jdelvare@suse.de> wrote:
> One of the benefits of platform_driver_probe() is that you can make
> the probe function __init.
>
Thanks, merged.
-Bryan
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-13 23:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-13 17:56 [PATCH] leds: clevo-mail: Make probe function __init Jean Delvare
2014-03-13 23:16 ` Bryan Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox