Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <deller@gmx.de>

+8 -12
-11
drivers/parisc/gsc.c
··· 258 258 259 259 return 0; 260 260 } 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);
+8 -1
drivers/parisc/lasi.c
··· 220 220 { HPHW_BA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00081 }, 221 221 { 0, } 222 222 }; 223 + MODULE_DEVICE_TABLE(parisc, lasi_tbl); 223 224 224 - struct parisc_driver lasi_driver __refdata = { 225 + static struct parisc_driver lasi_driver __refdata = { 225 226 .name = "lasi", 226 227 .id_table = lasi_tbl, 227 228 .probe = lasi_init_chip, 228 229 }; 230 + 231 + static int __init lasi_init(void) 232 + { 233 + return register_parisc_driver(&lasi_driver); 234 + } 235 + arch_initcall(lasi_init);