mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
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>
This commit is contained in:
parent
ecc2d430fa
commit
af69240060
1 changed files with 1 additions and 5 deletions
|
@ -85,8 +85,4 @@ static struct platform_driver atmel_ramc_driver = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init atmel_ramc_init(void)
|
builtin_platform_driver(atmel_ramc_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&atmel_ramc_driver);
|
|
||||||
}
|
|
||||||
device_initcall(atmel_ramc_init);
|
|
||||||
|
|
Loading…
Reference in a new issue