aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mach-se
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-02-25 06:14:28 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-02-26 01:30:09 -0500
commitb5f5fe80fa98a60daa0fa94512d1599b1e26674c (patch)
tree23ff3a9da9bda0f16a96c655464b4f07bc92f56f /arch/sh/boards/mach-se
parent6b3b55750b0de4a4ff2742efd34ff74665fa4e2f (diff)
sh: remove dead LED code for migo-r and ms7724se
CONFIG_PM is always set on SH-Mobile these days so get rid of the unused LED setup code. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/mach-se')
-rw-r--r--arch/sh/boards/mach-se/7724/setup.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c
index 563f3dcb1f9..66cdbc3c7af 100644
--- a/arch/sh/boards/mach-se/7724/setup.c
+++ b/arch/sh/boards/mach-se/7724/setup.c
@@ -629,7 +629,6 @@ static int __init devices_setup(void)
629 /* turn on USB clocks, use external clock */ 629 /* turn on USB clocks, use external clock */
630 __raw_writew((__raw_readw(PORT_MSELCRB) & ~0xc000) | 0x8000, PORT_MSELCRB); 630 __raw_writew((__raw_readw(PORT_MSELCRB) & ~0xc000) | 0x8000, PORT_MSELCRB);
631 631
632#ifdef CONFIG_PM
633 /* Let LED9 show STATUS2 */ 632 /* Let LED9 show STATUS2 */
634 gpio_request(GPIO_FN_STATUS2, NULL); 633 gpio_request(GPIO_FN_STATUS2, NULL);
635 634
@@ -638,22 +637,6 @@ static int __init devices_setup(void)
638 637
639 /* Lit LED11 show PDSTATUS */ 638 /* Lit LED11 show PDSTATUS */
640 gpio_request(GPIO_FN_PDSTATUS, NULL); 639 gpio_request(GPIO_FN_PDSTATUS, NULL);
641#else
642 /* Lit LED9 */
643 gpio_request(GPIO_PTJ6, NULL);
644 gpio_direction_output(GPIO_PTJ6, 1);
645 gpio_export(GPIO_PTJ6, 0);
646
647 /* Lit LED10 */
648 gpio_request(GPIO_PTJ5, NULL);
649 gpio_direction_output(GPIO_PTJ5, 1);
650 gpio_export(GPIO_PTJ5, 0);
651
652 /* Lit LED11 */
653 gpio_request(GPIO_PTJ7, NULL);
654 gpio_direction_output(GPIO_PTJ7, 1);
655 gpio_export(GPIO_PTJ7, 0);
656#endif
657 640
658 /* enable USB0 port */ 641 /* enable USB0 port */
659 __raw_writew(0x0600, 0xa40501d4); 642 __raw_writew(0x0600, 0xa40501d4);