Skip to contentSkip to conversation

ARM: OMAP1: Fix OSK5912 wake-up key by removing useless CONFIG_PM defines

PATCH New Tony Lindgren 1 participant 1 message Apr 24, 2015

Subsystems (3)
lore
Share & tools
lore

Tony Lindgren

author reviewer
#0 lore raw

PATCH 1/1 ARM: OMAP1: Fix OSK5912 wake-up key by removing useless CONFIG_PM defines

The wake-up key does not depend on CONFIG_PM, that just keeps it from getting compiled producing the following warning:

board-osk.c:513:7: warning: unused variable ?ret? [-Wunused-variable]

---
 arch/arm/mach-omap1/board-osk.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
arch/arm/mach-omap1/board-osk.c +1 -4
index 7436d4c..8d65309d 100644
@@ -441,13 +441,11 @@ static struct spi_board_info __initdata mistral_boardinfo[] = { {
 	.chip_select		= 0,
 } };
 
-#ifdef	CONFIG_PM
 static irqreturn_t
 osk_mistral_wake_interrupt(int irq, void *ignored)
 {
 	return IRQ_HANDLED;
 }
-#endif
 
 static void __init osk_mistral_init(void)
 {
@@ -515,7 +513,7 @@ static void __init osk_mistral_init(void)
 
 		gpio_direction_input(OMAP_MPUIO(2));
 		irq_set_irq_type(irq, IRQ_TYPE_EDGE_RISING);
-#ifdef	CONFIG_PM
+
 		/* share the IRQ in case someone wants to use the
 		 * button for more than wakeup from system sleep.
 		 */
@@ -529,7 +527,6 @@ static void __init osk_mistral_init(void)
 				ret);
 		} else
 			enable_irq_wake(irq);
-#endif
 	} else
 		printk(KERN_ERR "OSK+Mistral: wakeup button is awol\n");
 
Signature · 1 line
2.1.4