mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
powerpc/fsl_pmc: use builtin_platform_driver
Use builtin_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Scott Wood <oss@buserror.net>
This commit is contained in:
parent
53a46e8188
commit
16c6cb46a7
@ -85,8 +85,4 @@ static struct platform_driver pmc_driver = {
|
||||
.probe = pmc_probe,
|
||||
};
|
||||
|
||||
static int __init pmc_init(void)
|
||||
{
|
||||
return platform_driver_register(&pmc_driver);
|
||||
}
|
||||
device_initcall(pmc_init);
|
||||
builtin_platform_driver(pmc_driver);
|
||||
|
Loading…
x
Reference in New Issue
Block a user