]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
pinctrl: nomadik: Fix debugfs
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 2 Oct 2018 13:23:24 +0000 (15:23 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Oct 2018 07:10:52 +0000 (09:10 +0200)
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>
drivers/pinctrl/nomadik/pinctrl-nomadik.c

index cf1a20d1dce8503702db58c76e8821436a6e9911..4cc2c47f87783f89ac1719d81e47fa1016136f80 100644 (file)
@@ -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;