diff options
author | 2023-08-07 21:19:49 +0800 | |
---|---|---|
committer | 2023-09-12 20:25:54 +0200 | |
commit | 764db16149ec6128da548aac54a16b651461fbc8 (patch) | |
tree | 4fc88cd31bf1e64bc9045c06033ec83bb5e4b6db /drivers/power | |
parent | power: reset: msm: use builtin_platform_driver() to simplify code (diff) | |
download | linux-764db16149ec6128da548aac54a16b651461fbc8.tar.gz linux-764db16149ec6128da548aac54a16b651461fbc8.tar.bz2 linux-764db16149ec6128da548aac54a16b651461fbc8.zip |
power: reset: xgene-reboot: use builtin_platform_driver() to simplify code
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>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/reset/xgene-reboot.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/power/reset/xgene-reboot.c b/drivers/power/reset/xgene-reboot.c index 3260bd93158e..c2e5a99940d3 100644 --- a/drivers/power/reset/xgene-reboot.c +++ b/drivers/power/reset/xgene-reboot.c @@ -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); |