Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243272
b: refs/heads/master
c: b0f18ed
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Mar 29, 2011
1 parent 9fb75ea commit ecd5e3a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1738209a1500a10fe3cce0b11b81b5bb1c6dffbe
refs/heads/master: b0f18edaf6ee4e6fac89cae63a90bd38ad2a3418
19 changes: 0 additions & 19 deletions trunk/arch/arm/mach-tegra/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,32 +275,13 @@ void tegra_gpio_resume(void)
}

local_irq_restore(flags);

for (i = INT_GPIO_BASE; i < (INT_GPIO_BASE + TEGRA_NR_GPIOS); i++) {
struct irq_desc *desc = irq_to_desc(i);
if (!desc || (desc->status & IRQ_WAKEUP))
continue;
enable_irq(i);
}
}

void tegra_gpio_suspend(void)
{
unsigned long flags;
int b, p, i;

for (i = INT_GPIO_BASE; i < (INT_GPIO_BASE + TEGRA_NR_GPIOS); i++) {
struct irq_desc *desc = irq_to_desc(i);
if (!desc)
continue;
if (desc->status & IRQ_WAKEUP) {
int gpio = i - INT_GPIO_BASE;
pr_debug("gpio %d.%d is wakeup\n", gpio/8, gpio&7);
continue;
}
disable_irq(i);
}

local_irq_save(flags);
for (b = 0; b < ARRAY_SIZE(tegra_gpio_banks); b++) {
struct tegra_gpio_bank *bank = &tegra_gpio_banks[b];
Expand Down

0 comments on commit ecd5e3a

Please sign in to comment.