]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
power: reset: axxia-reset: use builtin_platform_driver() to simplify code
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 7 Aug 2023 13:19:50 +0000 (21:19 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 12 Sep 2023 18:25:54 +0000 (20:25 +0200)
The axxia_reset_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-5-yangyingliang@huawei.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/axxia-reset.c

index f7b40be5d6b6c4f38d8d7e41cb472cf2d9621355..24946766760c387ae2423690b53964e0dfdb9431 100644 (file)
@@ -80,9 +80,4 @@ static struct platform_driver axxia_reset_driver = {
                .of_match_table = of_match_ptr(of_axxia_reset_match),
        },
 };
-
-static int __init axxia_reset_init(void)
-{
-       return platform_driver_register(&axxia_reset_driver);
-}
-device_initcall(axxia_reset_init);
+builtin_platform_driver(axxia_reset_driver);