Commit ba8723b1 authored by Helge Deller's avatar Helge Deller

parisc: gsc: Convert GSC bus driver to use arch_initcall()

This conversion includes LASI, ASP and WAX drivers for now.
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 63c1ce56
...@@ -313,7 +313,6 @@ extern void collect_boot_cpu_data(void); ...@@ -313,7 +313,6 @@ extern void collect_boot_cpu_data(void);
extern int show_cpuinfo (struct seq_file *m, void *v); extern int show_cpuinfo (struct seq_file *m, void *v);
/* driver code in driver/parisc */ /* driver code in driver/parisc */
extern void gsc_init(void);
extern void processor_init(void); extern void processor_init(void);
extern void iosapic_init(void); extern void iosapic_init(void);
extern void lba_init(void); extern void lba_init(void);
......
...@@ -290,10 +290,6 @@ static int __init parisc_init(void) ...@@ -290,10 +290,6 @@ static int __init parisc_init(void)
lba_init(); lba_init();
#endif #endif
#if defined(CONFIG_GSC_LASI) || defined(CONFIG_GSC_WAX)
gsc_init();
#endif
#ifdef CONFIG_CHASSIS_LCD_LED #ifdef CONFIG_CHASSIS_LCD_LED
register_led_regions(); /* register LED port info in procfs */ register_led_regions(); /* register LED port info in procfs */
#endif #endif
......
...@@ -263,7 +263,7 @@ extern struct parisc_driver lasi_driver; ...@@ -263,7 +263,7 @@ extern struct parisc_driver lasi_driver;
extern struct parisc_driver asp_driver; extern struct parisc_driver asp_driver;
extern struct parisc_driver wax_driver; extern struct parisc_driver wax_driver;
void __init gsc_init(void) static int __init gsc_init(void)
{ {
#ifdef CONFIG_GSC_LASI #ifdef CONFIG_GSC_LASI
register_parisc_driver(&lasi_driver); register_parisc_driver(&lasi_driver);
...@@ -272,4 +272,6 @@ void __init gsc_init(void) ...@@ -272,4 +272,6 @@ void __init gsc_init(void)
#ifdef CONFIG_GSC_WAX #ifdef CONFIG_GSC_WAX
register_parisc_driver(&wax_driver); register_parisc_driver(&wax_driver);
#endif #endif
return 0;
} }
arch_initcall(gsc_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment