Commit 764db161 authored by Yang Yingliang's avatar Yang Yingliang Committed by Sebastian Reichel

power: reset: xgene-reboot: use builtin_platform_driver() to simplify code

The xgene_reboot_init() doesn't do anything special, so it can use the
builtin_platform_driver() macro to eliminate boilerplate code.
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230807131951.3443880-4-yangyingliang@huawei.comSigned-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 4e579a5c
......@@ -87,9 +87,4 @@ static struct platform_driver xgene_reboot_driver = {
.of_match_table = xgene_reboot_of_match,
},
};
static int __init xgene_reboot_init(void)
{
return platform_driver_register(&xgene_reboot_driver);
}
device_initcall(xgene_reboot_init);
builtin_platform_driver(xgene_reboot_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