Browse Source

pinctrl: nomadik: Fix debugfs

The .to_irq() function obviously takes the per-chip offset
as parameter, not the global GPIO number.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Linus Walleij 6 years ago
parent
commit
936a3a23be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/pinctrl/nomadik/pinctrl-nomadik.c

+ 1 - 1
drivers/pinctrl/nomadik/pinctrl-nomadik.c

@@ -971,7 +971,7 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s,
 			   data_out ? "hi" : "lo",
 			   (mode < 0) ? "unknown" : modes[mode]);
 	} else {
-		int irq = chip->to_irq(chip, gpio);
+		int irq = chip->to_irq(chip, offset);
 		struct irq_desc	*desc = irq_to_desc(irq);
 		int pullidx = 0;
 		int val;