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>
This commit is contained in:
parent
946ffefcdc
commit
936a3a23be
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue