power: reset: xgene-reboot: use builtin_platform_driver() to simplify code
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 7 Aug 2023 13:19:49 +0000 (21:19 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 12 Sep 2023 18:25:54 +0000 (20:25 +0200)
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: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230807131951.3443880-4-yangyingliang@huawei.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/xgene-reboot.c

index 3260bd93158ee4beee390bbcb2ad73a801a939d9..c2e5a99940d3754c6625d8033c905aed64abd6fe 100644 (file)
@@ -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);