parisc: led: Move register_led_regions() to late_initcall()
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Родитель
df3f93596c
Коммит
3b425dd2ae
|
@ -27,9 +27,6 @@
|
|||
/* register_led_driver() */
|
||||
int __init register_led_driver(int model, unsigned long cmd_reg, unsigned long data_reg);
|
||||
|
||||
/* registers the LED regions for procfs */
|
||||
void __init register_led_regions(void);
|
||||
|
||||
#ifdef CONFIG_CHASSIS_LCD_LED
|
||||
/* writes a string to the LCD display (if possible on this h/w) */
|
||||
int lcd_print(const char *str);
|
||||
|
|
|
@ -286,11 +286,6 @@ static int __init parisc_init(void)
|
|||
#if defined(CONFIG_IOMMU_SBA)
|
||||
sba_init();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CHASSIS_LCD_LED
|
||||
register_led_regions(); /* register LED port info in procfs */
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
arch_initcall(parisc_init);
|
||||
|
|
|
@ -613,7 +613,7 @@ int __init register_led_driver(int model, unsigned long cmd_reg, unsigned long d
|
|||
**
|
||||
*/
|
||||
|
||||
void __init register_led_regions(void)
|
||||
static int __init register_led_regions(void)
|
||||
{
|
||||
switch (lcd_info.model) {
|
||||
case DISPLAY_MODEL_LCD:
|
||||
|
@ -625,7 +625,9 @@ void __init register_led_regions(void)
|
|||
request_mem_region((unsigned long)LED_DATA_REG, 1, "led_data");
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
late_initcall(register_led_regions);
|
||||
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче