Commit af692400 authored by Wei Yongjun's avatar Wei Yongjun Committed by Alexandre Belloni

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent ecc2d430
......@@ -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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment