Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269415
b: refs/heads/master
c: 4700800
h: refs/heads/master
i:
  269413: 06c6d07
  269411: a15aa7d
  269407: 1e8d79f
v: v3
  • Loading branch information
Stephen Warren authored and Russell King committed Aug 24, 2011
1 parent 7cb3a01 commit 603ed3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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: a1e6b41e8ec152efceb3128592b83d40c8a28334
refs/heads/master: 470080015c1f8bbd15ba1486d5c4bd8a3e7fa79a
16 changes: 10 additions & 6 deletions trunk/drivers/gpio/gpio-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ static struct lock_class_key gpio_lock_class;
static int __init tegra_gpio_init(void)
{
struct tegra_gpio_bank *bank;
int gpio;
int i;
int j;

Expand All @@ -352,14 +353,17 @@ static int __init tegra_gpio_init(void)

gpiochip_add(&tegra_gpio_chip);

for (i = INT_GPIO_BASE; i < (INT_GPIO_BASE + TEGRA_NR_GPIOS); i++) {
bank = &tegra_gpio_banks[GPIO_BANK(irq_to_gpio(i))];
for (gpio = 0; gpio < TEGRA_NR_GPIOS; gpio++) {
int irq = TEGRA_GPIO_TO_IRQ(gpio);
/* No validity check; all Tegra GPIOs are valid IRQs */

irq_set_lockdep_class(i, &gpio_lock_class);
irq_set_chip_data(i, bank);
irq_set_chip_and_handler(i, &tegra_gpio_irq_chip,
bank = &tegra_gpio_banks[GPIO_BANK(gpio)];

irq_set_lockdep_class(irq, &gpio_lock_class);
irq_set_chip_data(irq, bank);
irq_set_chip_and_handler(irq, &tegra_gpio_irq_chip,
handle_simple_irq);
set_irq_flags(i, IRQF_VALID);
set_irq_flags(irq, IRQF_VALID);
}

for (i = 0; i < ARRAY_SIZE(tegra_gpio_banks); i++) {
Expand Down

0 comments on commit 603ed3f

Please sign in to comment.