OSDN Git Service

memory: atmel-sdramc: use builtin_platform_driver to simplify the code
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 16 Sep 2016 13:05:10 +0000 (13:05 +0000)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 20 Oct 2016 09:59:57 +0000 (11:59 +0200)
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>
drivers/memory/atmel-sdramc.c

index 12080b0..b418b39 100644 (file)
@@ -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);