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>
This commit is contained in:
Родитель
63c1ce56ab
Коммит
ba8723b1ed
|
@ -313,7 +313,6 @@ extern void collect_boot_cpu_data(void);
|
|||
extern int show_cpuinfo (struct seq_file *m, void *v);
|
||||
|
||||
/* driver code in driver/parisc */
|
||||
extern void gsc_init(void);
|
||||
extern void processor_init(void);
|
||||
extern void iosapic_init(void);
|
||||
extern void lba_init(void);
|
||||
|
|
|
@ -290,10 +290,6 @@ static int __init parisc_init(void)
|
|||
lba_init();
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_GSC_LASI) || defined(CONFIG_GSC_WAX)
|
||||
gsc_init();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CHASSIS_LCD_LED
|
||||
register_led_regions(); /* register LED port info in procfs */
|
||||
#endif
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче