summaryrefslogtreecommitdiff
path: root/drivers/parisc
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-08-27 10:14:42 +0300
committerHelge Deller <deller@gmx.de>2023-08-27 10:17:37 +0300
commitba8723b1edf9dbd4c10a739375a60506fd00652b (patch)
treeffed4f3f3a707b09eafa8da42cea97dd9d1b986b /drivers/parisc
parent63c1ce56abddec2cec046cdbe6260bca09bf89a1 (diff)
downloadlinux-ba8723b1edf9dbd4c10a739375a60506fd00652b.tar.xz
parisc: gsc: Convert GSC bus driver to use arch_initcall()
This conversion includes LASI, ASP and WAX drivers for now. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/parisc')
-rw-r--r--drivers/parisc/gsc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/parisc/gsc.c b/drivers/parisc/gsc.c
index ec175ae99873..f6a8f26d8c40 100644
--- a/drivers/parisc/gsc.c
+++ b/drivers/parisc/gsc.c
@@ -263,7 +263,7 @@ extern struct parisc_driver lasi_driver;
extern struct parisc_driver asp_driver;
extern struct parisc_driver wax_driver;
-void __init gsc_init(void)
+static int __init gsc_init(void)
{
#ifdef CONFIG_GSC_LASI
register_parisc_driver(&lasi_driver);
@@ -272,4 +272,6 @@ void __init gsc_init(void)
#ifdef CONFIG_GSC_WAX
register_parisc_driver(&wax_driver);
#endif
+ return 0;
}
+arch_initcall(gsc_init);