diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2015-01-03 11:52:39 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2015-01-14 20:29:18 -0500 |
commit | 4986abaa76d580add77ee6261c970eb225b6035d (patch) | |
tree | 8e491ab0bf97eca7e3ce2919820ce435184e84f6 | |
parent | 63bdaa9332dd8f582629b96bea44dd228231c64a (diff) |
ARM: versatile: core: Remove unused function
Remove the function versatile_leds_event() that is not used anywhere.
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | arch/arm/mach-versatile/core.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index 08fb8c89f414..6ea09fe53426 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c | |||
@@ -728,43 +728,6 @@ struct of_dev_auxdata versatile_auxdata_lookup[] __initdata = { | |||
728 | }; | 728 | }; |
729 | #endif | 729 | #endif |
730 | 730 | ||
731 | #ifdef CONFIG_LEDS | ||
732 | #define VA_LEDS_BASE (__io_address(VERSATILE_SYS_BASE) + VERSATILE_SYS_LED_OFFSET) | ||
733 | |||
734 | static void versatile_leds_event(led_event_t ledevt) | ||
735 | { | ||
736 | unsigned long flags; | ||
737 | u32 val; | ||
738 | |||
739 | local_irq_save(flags); | ||
740 | val = readl(VA_LEDS_BASE); | ||
741 | |||
742 | switch (ledevt) { | ||
743 | case led_idle_start: | ||
744 | val = val & ~VERSATILE_SYS_LED0; | ||
745 | break; | ||
746 | |||
747 | case led_idle_end: | ||
748 | val = val | VERSATILE_SYS_LED0; | ||
749 | break; | ||
750 | |||
751 | case led_timer: | ||
752 | val = val ^ VERSATILE_SYS_LED1; | ||
753 | break; | ||
754 | |||
755 | case led_halted: | ||
756 | val = 0; | ||
757 | break; | ||
758 | |||
759 | default: | ||
760 | break; | ||
761 | } | ||
762 | |||
763 | writel(val, VA_LEDS_BASE); | ||
764 | local_irq_restore(flags); | ||
765 | } | ||
766 | #endif /* CONFIG_LEDS */ | ||
767 | |||
768 | void versatile_restart(enum reboot_mode mode, const char *cmd) | 731 | void versatile_restart(enum reboot_mode mode, const char *cmd) |
769 | { | 732 | { |
770 | void __iomem *sys = __io_address(VERSATILE_SYS_BASE); | 733 | void __iomem *sys = __io_address(VERSATILE_SYS_BASE); |