diff options
author | 2018-10-02 15:23:24 +0200 | |
---|---|---|
committer | 2018-10-03 09:10:52 +0200 | |
commit | 936a3a23becf8068c532c3c8af42dc52a3e54238 (patch) | |
tree | 2db1fcc00b9d0ee448bff82cbad118564d397337 /drivers/pinctrl | |
parent | pinctrl: intel: Fix a spelling typo in kernel documentation (diff) | |
download | linux-936a3a23becf8068c532c3c8af42dc52a3e54238.tar.gz linux-936a3a23becf8068c532c3c8af42dc52a3e54238.tar.bz2 linux-936a3a23becf8068c532c3c8af42dc52a3e54238.zip |
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/nomadik/pinctrl-nomadik.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c index cf1a20d1dce8..4cc2c47f8778 100644 --- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c +++ b/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; |