gpio: pci-idio-16: Fix PCI BAR index
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Wed, 8 Feb 2017 13:32:46 +0000 (08:32 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 13 Feb 2017 15:19:10 +0000 (16:19 +0100)
commitdeab2b0524aa1d7d081a1b17d283a76f11c45b1b
tree4d1f92809cc8d82d3bf306d23414cde471d9975f
parentfd254a23cadaa4513f248a5f6b211ea63fdabe91
gpio: pci-idio-16: Fix PCI BAR index

The PCI BAR0 and BAR1 for the PCI-IDIO-16 hold information for the PLX
9052 bridge chip on the device. The PCI BAR2 holds the necessary base
address for I/O control of the PCI-IDIO-16. This patch corrects the PCI
BAR index mismatch for the PCI-IDIO-16 GPIO driver.

Fixes: 02e74fc0401a ("gpio: Add GPIO support for the ACCES PCI-IDIO-16")
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pci-idio-16.c