parisc: dino: Convert dino PCI bus driver to use arch_initcall()

Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Helge Deller 2023-08-27 08:43:52 +02:00
parent 59bf860a97
commit 07c34e9fdc
3 changed files with 3 additions and 8 deletions

View File

@ -317,7 +317,6 @@ extern void gsc_init(void);
extern void processor_init(void); extern void processor_init(void);
extern void ccio_init(void); extern void ccio_init(void);
extern void hppb_init(void); extern void hppb_init(void);
extern void dino_init(void);
extern void iosapic_init(void); extern void iosapic_init(void);
extern void lba_init(void); extern void lba_init(void);
extern void sba_init(void); extern void sba_init(void);

View File

@ -311,10 +311,6 @@ static int __init parisc_init(void)
hppb_init(); hppb_init();
#endif #endif
#if defined(CONFIG_GSC_DINO)
dino_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

View File

@ -1084,8 +1084,8 @@ static struct parisc_driver dino_driver __refdata = {
* This is the only routine which is NOT static. * This is the only routine which is NOT static.
* Must be called exactly once before pci_init(). * Must be called exactly once before pci_init().
*/ */
void __init dino_init(void) static int __init dino_init(void)
{ {
register_parisc_driver(&dino_driver); return register_parisc_driver(&dino_driver);
} }
arch_initcall(dino_init);