diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-05-16 06:02:18 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-05-27 19:37:59 -0400 |
commit | 75907a1153b42100b7a5e960bfe47d208d726309 (patch) | |
tree | 4fc564a5ef29c44ede9e2d0a375fbf4a4c0ce6be | |
parent | 8deca39e5caf7a20fc3786548dc9bfb7f0ae14b6 (diff) |
gpio: Fix inverted rdc321x gpio data out registers
rdc_gpio_set_value_impl has the gpio data registers 1 and 2 inverted, fix this.
Signed-off-by: Bernhard Loos <bernhardloos@gmail.com>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | drivers/gpio/rdc321x-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/rdc321x-gpio.c b/drivers/gpio/rdc321x-gpio.c index 22f31dc50104..2762698e0204 100644 --- a/drivers/gpio/rdc321x-gpio.c +++ b/drivers/gpio/rdc321x-gpio.c | |||
@@ -73,7 +73,7 @@ static void rdc_gpio_set_value_impl(struct gpio_chip *chip, | |||
73 | gpch->data_reg[reg] &= ~(1 << (gpio & 0x1f)); | 73 | gpch->data_reg[reg] &= ~(1 << (gpio & 0x1f)); |
74 | 74 | ||
75 | pci_write_config_dword(gpch->sb_pdev, | 75 | pci_write_config_dword(gpch->sb_pdev, |
76 | reg ? gpch->reg1_data_base : gpch->reg2_data_base, | 76 | reg ? gpch->reg2_data_base : gpch->reg1_data_base, |
77 | gpch->data_reg[reg]); | 77 | gpch->data_reg[reg]); |
78 | } | 78 | } |
79 | 79 | ||