Skip to content

Commit 4966318

Browse files
committed
parisc: hppb: Convert HP PB bus driver to use arch_initcall()
Signed-off-by: Helge Deller <[email protected]>
1 parent 07c34e9 commit 4966318

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

arch/parisc/include/asm/processor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ extern int show_cpuinfo (struct seq_file *m, void *v);
316316
extern void gsc_init(void);
317317
extern void processor_init(void);
318318
extern void ccio_init(void);
319-
extern void hppb_init(void);
320319
extern void iosapic_init(void);
321320
extern void lba_init(void);
322321
extern void sba_init(void);

arch/parisc/kernel/setup.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,6 @@ static int __init parisc_init(void)
307307
parisc_eisa_init();
308308
#endif
309309

310-
#if defined(CONFIG_HPPB)
311-
hppb_init();
312-
#endif
313-
314310
#ifdef CONFIG_CHASSIS_LCD_LED
315311
register_led_regions(); /* register LED port info in procfs */
316312
#endif

drivers/parisc/hppb.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ static struct parisc_driver hppb_driver __refdata = {
9696
/**
9797
* hppb_init - HP-PB bus initialization procedure.
9898
*
99-
* Register this driver.
99+
* Register this driver.
100100
*/
101-
void __init hppb_init(void)
101+
static int __init hppb_init(void)
102102
{
103-
register_parisc_driver(&hppb_driver);
103+
return register_parisc_driver(&hppb_driver);
104104
}
105+
arch_initcall(hppb_init);

0 commit comments

Comments
 (0)