diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2023-08-07 16:19:51 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2023-09-12 21:25:54 +0300 |
commit | 5b69b5f209b7a6d21329b14b533b390fff6895d5 (patch) | |
tree | cea9429b00b1614dace4407c5134e79a6802cbd7 /drivers/power/reset | |
parent | 6a7f7f27e2c766f36c6bd948a5de91ca2703c2a4 (diff) | |
download | linux-5b69b5f209b7a6d21329b14b533b390fff6895d5.tar.xz |
power: reset: syscon-poweroff: use builtin_platform_driver() to simplify code
The syscon_poweroff_register() 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-6-yangyingliang@huawei.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/reset')
-rw-r--r-- | drivers/power/reset/syscon-poweroff.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/power/reset/syscon-poweroff.c b/drivers/power/reset/syscon-poweroff.c index 430d440d55c6..270f289239a5 100644 --- a/drivers/power/reset/syscon-poweroff.c +++ b/drivers/power/reset/syscon-poweroff.c @@ -93,9 +93,4 @@ static struct platform_driver syscon_poweroff_driver = { .of_match_table = syscon_poweroff_of_match, }, }; - -static int __init syscon_poweroff_register(void) -{ - return platform_driver_register(&syscon_poweroff_driver); -} -device_initcall(syscon_poweroff_register); +builtin_platform_driver(syscon_poweroff_driver); |