diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2023-08-07 21:19:50 +0800 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2023-09-12 20:25:54 +0200 |
commit | 6a7f7f27e2c766f36c6bd948a5de91ca2703c2a4 (patch) | |
tree | 37ab9ff22719e499ea2a6ecb30c7128c14ce9842 /drivers/power/reset | |
parent | 764db16149ec6128da548aac54a16b651461fbc8 (diff) | |
download | linux-stable-6a7f7f27e2c766f36c6bd948a5de91ca2703c2a4.tar.gz linux-stable-6a7f7f27e2c766f36c6bd948a5de91ca2703c2a4.tar.bz2 linux-stable-6a7f7f27e2c766f36c6bd948a5de91ca2703c2a4.zip |
power: reset: axxia-reset: use builtin_platform_driver() to simplify code
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>
Diffstat (limited to 'drivers/power/reset')
-rw-r--r-- | drivers/power/reset/axxia-reset.c | 7 |
1 files changed, 1 insertions, 6 deletions
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); |