Commit 3b425dd2 authored by Helge Deller's avatar Helge Deller

parisc: led: Move register_led_regions() to late_initcall()

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent df3f9359
...@@ -27,9 +27,6 @@ ...@@ -27,9 +27,6 @@
/* register_led_driver() */ /* register_led_driver() */
int __init register_led_driver(int model, unsigned long cmd_reg, unsigned long data_reg); 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 #ifdef CONFIG_CHASSIS_LCD_LED
/* writes a string to the LCD display (if possible on this h/w) */ /* writes a string to the LCD display (if possible on this h/w) */
int lcd_print(const char *str); int lcd_print(const char *str);
......
...@@ -286,11 +286,6 @@ static int __init parisc_init(void) ...@@ -286,11 +286,6 @@ static int __init parisc_init(void)
#if defined(CONFIG_IOMMU_SBA) #if defined(CONFIG_IOMMU_SBA)
sba_init(); sba_init();
#endif #endif
#ifdef CONFIG_CHASSIS_LCD_LED
register_led_regions(); /* register LED port info in procfs */
#endif
return 0; return 0;
} }
arch_initcall(parisc_init); arch_initcall(parisc_init);
......
...@@ -613,7 +613,7 @@ int __init register_led_driver(int model, unsigned long cmd_reg, unsigned long d ...@@ -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) { switch (lcd_info.model) {
case DISPLAY_MODEL_LCD: case DISPLAY_MODEL_LCD:
...@@ -625,7 +625,9 @@ void __init register_led_regions(void) ...@@ -625,7 +625,9 @@ void __init register_led_regions(void)
request_mem_region((unsigned long)LED_DATA_REG, 1, "led_data"); request_mem_region((unsigned long)LED_DATA_REG, 1, "led_data");
break; break;
} }
return 0;
} }
late_initcall(register_led_regions);
/* /*
......
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