summaryrefslogtreecommitdiffstats
path: root/drivers/memory
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-09-16 09:05:10 -0400
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-10-20 05:59:57 -0400
commitaf692400608857f7d7c3189c150c0b1d6b0ffad0 (patch)
treec604b23083083786b7071429885664e80498dd85 /drivers/memory
parentecc2d430fadfba408b1d453d82128a696fa73fe0 (diff)
memory: atmel-sdramc: use builtin_platform_driver to simplify the code
Use the builtin_platform_driver() macro to make the code simpler. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/memory')
-rw-r--r--drivers/memory/atmel-sdramc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/memory/atmel-sdramc.c b/drivers/memory/atmel-sdramc.c
index 12080b05e3e6..b418b39af180 100644
--- a/drivers/memory/atmel-sdramc.c
+++ b/drivers/memory/atmel-sdramc.c
@@ -85,8 +85,4 @@ static struct platform_driver atmel_ramc_driver = {
85 }, 85 },
86}; 86};
87 87
88static int __init atmel_ramc_init(void) 88builtin_platform_driver(atmel_ramc_driver);
89{
90 return platform_driver_register(&atmel_ramc_driver);
91}
92device_initcall(atmel_ramc_init);