parisc: hppb: Convert HP PB 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:56:16 +02:00
parent 07c34e9fdc
commit 49663185d0
3 changed files with 4 additions and 8 deletions

View File

@ -316,7 +316,6 @@ extern int show_cpuinfo (struct seq_file *m, void *v);
extern void gsc_init(void);
extern void processor_init(void);
extern void ccio_init(void);
extern void hppb_init(void);
extern void iosapic_init(void);
extern void lba_init(void);
extern void sba_init(void);

View File

@ -307,10 +307,6 @@ static int __init parisc_init(void)
parisc_eisa_init();
#endif
#if defined(CONFIG_HPPB)
hppb_init();
#endif
#ifdef CONFIG_CHASSIS_LCD_LED
register_led_regions(); /* register LED port info in procfs */
#endif

View File

@ -98,7 +98,8 @@ static struct parisc_driver hppb_driver __refdata = {
*
* Register this driver.
*/
void __init hppb_init(void)
static int __init hppb_init(void)
{
register_parisc_driver(&hppb_driver);
return register_parisc_driver(&hppb_driver);
}
arch_initcall(hppb_init);