* [PATCH -next] memory: atmel-sdramc: use builtin_platform_driver to simplify the code
@ 2016-09-16 13:05 Wei Yongjun
2016-10-20 10:00 ` Alexandre Belloni
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-09-16 13:05 UTC (permalink / raw)
To: Alexandre Belloni, LABBE Corentin, Nicolas Ferre, Paul Gortmaker
Cc: Wei Yongjun, linux-kernel
From: Wei Yongjun <weiyongjun1@huawei.com>
Use the builtin_platform_driver() macro to make the code simpler.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/memory/atmel-sdramc.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/memory/atmel-sdramc.c b/drivers/memory/atmel-sdramc.c
index 12080b0..b418b39 100644
--- a/drivers/memory/atmel-sdramc.c
+++ b/drivers/memory/atmel-sdramc.c
@@ -85,8 +85,4 @@ static struct platform_driver atmel_ramc_driver = {
},
};
-static int __init atmel_ramc_init(void)
-{
- return platform_driver_register(&atmel_ramc_driver);
-}
-device_initcall(atmel_ramc_init);
+builtin_platform_driver(atmel_ramc_driver);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] memory: atmel-sdramc: use builtin_platform_driver to simplify the code
2016-09-16 13:05 [PATCH -next] memory: atmel-sdramc: use builtin_platform_driver to simplify the code Wei Yongjun
@ 2016-10-20 10:00 ` Alexandre Belloni
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2016-10-20 10:00 UTC (permalink / raw)
To: Wei Yongjun
Cc: LABBE Corentin, Nicolas Ferre, Paul Gortmaker, Wei Yongjun, linux-kernel
On 16/09/2016 at 13:05:10 +0000, Wei Yongjun wrote :
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> Use the builtin_platform_driver() macro to make the code simpler.
>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---
> drivers/memory/atmel-sdramc.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
Applied, thanks.
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-20 10:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-16 13:05 [PATCH -next] memory: atmel-sdramc: use builtin_platform_driver to simplify the code Wei Yongjun
2016-10-20 10:00 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®