diff options
Diffstat (limited to 'arch/arm/mach-tegra/gpio.c')
-rw-r--r-- | arch/arm/mach-tegra/gpio.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/gpio.c b/arch/arm/mach-tegra/gpio.c index 66f37f9b4d65..25d1eaa31de1 100644 --- a/arch/arm/mach-tegra/gpio.c +++ b/arch/arm/mach-tegra/gpio.c @@ -240,8 +240,7 @@ static int tegra_gpio_irq_set_type(unsigned int irq, unsigned int type) else if (type & (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) __set_irq_handler_unlocked(irq, handle_edge_irq); - if (tegra_get_suspend_mode() == TEGRA_SUSPEND_LP0) - tegra_set_lp0_wake_type(irq, type); + tegra_set_lp0_wake_type(irq, type); return 0; } @@ -363,12 +362,10 @@ static int tegra_gpio_wake_enable(unsigned int irq, unsigned int enable) struct tegra_gpio_bank *bank = get_irq_chip_data(irq); ret = tegra_set_lp1_wake(bank->irq, enable); + ret |= tegra_set_lp0_wake(irq, enable); if (ret) return ret; - if (tegra_get_suspend_mode() == TEGRA_SUSPEND_LP0) - return tegra_set_lp0_wake(irq, enable); - return 0; } #endif |