Skip to content

Commit d75ef59

Browse files
committed
parisc: lasi: Initialize LASI driver via arch_initcall()
Move initialization code for LASI out of the GSC driver. Since ASP and WAX have been moved in previous commits, the GSC driver is now just a driver which provides library functions for LASI, ASP and WAX and as such doesn't need an own initialization function any longer. Signed-off-by: Helge Deller <[email protected]>
1 parent ff0e833 commit d75ef59

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

drivers/parisc/gsc.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,3 @@ int gsc_common_setup(struct parisc_device *parent, struct gsc_asic *gsc_asic)
258258

259259
return 0;
260260
}
261-
262-
extern struct parisc_driver lasi_driver;
263-
264-
static int __init gsc_init(void)
265-
{
266-
#ifdef CONFIG_GSC_LASI
267-
register_parisc_driver(&lasi_driver);
268-
#endif
269-
return 0;
270-
}
271-
arch_initcall(gsc_init);

drivers/parisc/lasi.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,16 @@ static struct parisc_device_id lasi_tbl[] __initdata = {
220220
{ HPHW_BA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00081 },
221221
{ 0, }
222222
};
223+
MODULE_DEVICE_TABLE(parisc, lasi_tbl);
223224

224-
struct parisc_driver lasi_driver __refdata = {
225+
static struct parisc_driver lasi_driver __refdata = {
225226
.name = "lasi",
226227
.id_table = lasi_tbl,
227228
.probe = lasi_init_chip,
228229
};
230+
231+
static int __init lasi_init(void)
232+
{
233+
return register_parisc_driver(&lasi_driver);
234+
}
235+
arch_initcall(lasi_init);

0 commit comments

Comments
 (0)