Commit 28a065f2 authored by Russell King's avatar Russell King

[ARM] Fix clps711x and ftvpci LEDs initialisation.

parent 53252275
...@@ -64,4 +64,4 @@ static int __init leds_init(void) ...@@ -64,4 +64,4 @@ static int __init leds_init(void)
return 0; return 0;
} }
__initcall(leds_init); arch_initcall(leds_init);
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h>
#include <asm/hardware.h> #include <asm/hardware.h>
#include <asm/leds.h> #include <asm/leds.h>
...@@ -26,6 +27,10 @@ static void ftvpci_leds_event(led_event_t ledevt) ...@@ -26,6 +27,10 @@ static void ftvpci_leds_event(led_event_t ledevt)
} }
} }
void (*leds_event)(led_event_t) = ftvpci_leds_event; static int __init ftvpci_leds_init(void)
{
leds_event = ftvpci_leds_event;
return 0;
}
EXPORT_SYMBOL(leds_event); arch_initcall(ftvpci_leds_init);
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