Skip to contentSkip to conversation

memory: atmel-sdramc: use builtin_platform_driver to simplify the code

PATCH Applied Wei Yongjun 2 participants 2 messages Sep 16, 2016 – Oct 20, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 memory: atmel-sdramc: use builtin_platform_driver to simplify the code

From: Wei Yongjun <[email protected]>

Use the builtin_platform_driver() macro to make the code simpler.

---
 drivers/memory/atmel-sdramc.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/memory/atmel-sdramc.c +1 -5
index 12080b0..b418b39 100644
@@ -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);
#1 lore raw
Quoted 9 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

Use the builtin_platform_driver() macro to make the code simpler.

---
 drivers/memory/atmel-sdramc.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Applied, thanks.

Signature · 3 lines
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com