Commit 936a3a23 authored by Linus Walleij's avatar Linus Walleij

pinctrl: nomadik: Fix debugfs

The .to_irq() function obviously takes the per-chip offset
as parameter, not the global GPIO number.
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 946ffefc
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment