Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1528469 > unrolled thread
| Started by | Geliang Tang <geliangtang@gmail.com> |
|---|---|
| First post | 2016-11-23 16:00 +0100 |
| Last post | 2016-11-23 17:00 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] leds: leds-cobalt-raq: use builtin_platform_driver Geliang Tang <geliangtang@gmail.com> - 2016-11-23 16:00 +0100
Re: [PATCH] leds: leds-cobalt-raq: use builtin_platform_driver Jacek Anaszewski <j.anaszewski@samsung.com> - 2016-11-23 17:00 +0100
| From | Geliang Tang <geliangtang@gmail.com> |
|---|---|
| Date | 2016-11-23 16:00 +0100 |
| Subject | [PATCH] leds: leds-cobalt-raq: use builtin_platform_driver |
| Message-ID | <sGHbI-6cs-21@gated-at.bofh.it> |
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
drivers/leds/leds-cobalt-raq.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/leds/leds-cobalt-raq.c b/drivers/leds/leds-cobalt-raq.c
index b316df4..8d066fa 100644
--- a/drivers/leds/leds-cobalt-raq.c
+++ b/drivers/leds/leds-cobalt-raq.c
@@ -115,8 +115,4 @@ static struct platform_driver cobalt_raq_led_driver = {
},
};
-static int __init cobalt_raq_led_init(void)
-{
- return platform_driver_register(&cobalt_raq_led_driver);
-}
-device_initcall(cobalt_raq_led_init);
+builtin_platform_driver(cobalt_raq_led_driver);
--
2.9.3
[toc] | [next] | [standalone]
| From | Jacek Anaszewski <j.anaszewski@samsung.com> |
|---|---|
| Date | 2016-11-23 17:00 +0100 |
| Message-ID | <sGI7M-6KY-13@gated-at.bofh.it> |
| In reply to | #1528469 |
Hi Geliang,
Thanks for the patch.
Applied to the for-next branch of liunx-leds.git.
Best regards,
Jacek Anaszewski
On 11/23/2016 03:50 PM, Geliang Tang wrote:
> Use builtin_platform_driver() helper to simplify the code.
>
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>
> ---
> drivers/leds/leds-cobalt-raq.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/leds/leds-cobalt-raq.c b/drivers/leds/leds-cobalt-raq.c
> index b316df4..8d066fa 100644
> --- a/drivers/leds/leds-cobalt-raq.c
> +++ b/drivers/leds/leds-cobalt-raq.c
> @@ -115,8 +115,4 @@ static struct platform_driver cobalt_raq_led_driver = {
> },
> };
>
> -static int __init cobalt_raq_led_init(void)
> -{
> - return platform_driver_register(&cobalt_raq_led_driver);
> -}
> -device_initcall(cobalt_raq_led_init);
> +builtin_platform_driver(cobalt_raq_led_driver);
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web