diff options
Diffstat (limited to 'arch/blackfin/mach-common/ints-priority.c')
-rw-r--r-- | arch/blackfin/mach-common/ints-priority.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/blackfin/mach-common/ints-priority.c b/arch/blackfin/mach-common/ints-priority.c index 7ad8878bfa18..ce988713445d 100644 --- a/arch/blackfin/mach-common/ints-priority.c +++ b/arch/blackfin/mach-common/ints-priority.c | |||
@@ -662,14 +662,7 @@ static int bfin_gpio_irq_type(unsigned int irq, unsigned int type) | |||
662 | #ifdef CONFIG_PM | 662 | #ifdef CONFIG_PM |
663 | int bfin_gpio_set_wake(unsigned int irq, unsigned int state) | 663 | int bfin_gpio_set_wake(unsigned int irq, unsigned int state) |
664 | { | 664 | { |
665 | unsigned gpio = irq_to_gpio(irq); | 665 | return gpio_pm_wakeup_ctrl(irq_to_gpio(irq), state); |
666 | |||
667 | if (state) | ||
668 | gpio_pm_wakeup_request(gpio, PM_WAKE_IGNORE); | ||
669 | else | ||
670 | gpio_pm_wakeup_free(gpio); | ||
671 | |||
672 | return 0; | ||
673 | } | 666 | } |
674 | #endif | 667 | #endif |
675 | 668 | ||