diff mbox series

[-next,4/5] power: reset: axxia-reset: use builtin_platform_driver() to simplify code

Message ID 20230807131951.3443880-5-yangyingliang@huawei.com (mailing list archive)
State Handled Elsewhere, archived
Headers show
Series power: reset: use builtin_platform_driver() to simplify code | expand

Commit Message

Yang Yingliang Aug. 7, 2023, 1:19 p.m. UTC
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>
---
 drivers/power/reset/axxia-reset.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/drivers/power/reset/axxia-reset.c b/drivers/power/reset/axxia-reset.c
index f7b40be5d6b6..24946766760c 100644
--- a/drivers/power/reset/axxia-reset.c
+++ b/drivers/power/reset/axxia-reset.c
@@ -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);