From: Wei Yongjun Date: Fri, 16 Sep 2016 13:05:10 +0000 (+0000) Subject: memory: atmel-sdramc: use builtin_platform_driver to simplify the code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af692400608857f7d7c3189c150c0b1d6b0ffad0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Alexandre Belloni --- 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 = { }, }; -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);