Commit a90d9904 authored by Anders Roxell's avatar Anders Roxell Committed by Arnd Bergmann

power: vexpress: cleanup: use builtin_platform_driver

Use the helper macro for builtin drivers taht don't do anything special
in driver init. This removes some boilerplate code.

Link: https://lore.kernel.org/r/20200527112608.3886105-3-anders.roxell@linaro.orgSigned-off-by: default avatarAnders Roxell <anders.roxell@linaro.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 73174acc
......@@ -146,9 +146,4 @@ static struct platform_driver vexpress_reset_driver = {
.suppress_bind_attrs = true,
},
};
static int __init vexpress_reset_init(void)
{
return platform_driver_register(&vexpress_reset_driver);
}
device_initcall(vexpress_reset_init);
builtin_platform_driver(vexpress_reset_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