summaryrefslogtreecommitdiff
path: root/drivers/parisc
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-08-27 10:49:20 +0200
committerHelge Deller <deller@gmx.de>2023-08-27 11:09:10 +0200
commitff0e833e98ee382e718a0a8a9433a3568fede4ab (patch)
tree2bb4245d8580f9795d4037b10f0ab9f365c39dfc /drivers/parisc
parentac65d9c90e4cccab2c939b2648e015c93ba3711b (diff)
downloadlwn-ff0e833e98ee382e718a0a8a9433a3568fede4ab.tar.gz
lwn-ff0e833e98ee382e718a0a8a9433a3568fede4ab.zip
parisc: asp: Initialize asp driver via arch_initcall()
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/parisc')
-rw-r--r--drivers/parisc/asp.c11
-rw-r--r--drivers/parisc/gsc.c2
2 files changed, 9 insertions, 4 deletions
diff --git a/drivers/parisc/asp.c b/drivers/parisc/asp.c
index f55018e5cc7c..32af8f095781 100644
--- a/drivers/parisc/asp.c
+++ b/drivers/parisc/asp.c
@@ -4,7 +4,7 @@
*
* (c) Copyright 2000 The Puffin Group Inc.
*
- * by Helge Deller <deller@gmx.de>
+ * (c) 2000-2023 by Helge Deller <deller@gmx.de>
*/
#include <linux/errno.h>
@@ -118,9 +118,16 @@ static const struct parisc_device_id asp_tbl[] __initconst = {
{ HPHW_BA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00070 },
{ 0, }
};
+MODULE_DEVICE_TABLE(parisc, asp_tbl);
-struct parisc_driver asp_driver __refdata = {
+static struct parisc_driver asp_driver __refdata = {
.name = "asp",
.id_table = asp_tbl,
.probe = asp_init_chip,
};
+
+static int __init asp_init(void)
+{
+ return register_parisc_driver(&asp_driver);
+}
+arch_initcall(asp_init);
diff --git a/drivers/parisc/gsc.c b/drivers/parisc/gsc.c
index 95112176c546..5643c46a4255 100644
--- a/drivers/parisc/gsc.c
+++ b/drivers/parisc/gsc.c
@@ -260,13 +260,11 @@ int gsc_common_setup(struct parisc_device *parent, struct gsc_asic *gsc_asic)
}
extern struct parisc_driver lasi_driver;
-extern struct parisc_driver asp_driver;
static int __init gsc_init(void)
{
#ifdef CONFIG_GSC_LASI
register_parisc_driver(&lasi_driver);
- register_parisc_driver(&asp_driver);
#endif
return 0;
}