diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-05-16 12:02:18 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-05-28 01:37:59 +0200 |
commit | 75907a1153b42100b7a5e960bfe47d208d726309 (patch) | |
tree | 4fc564a5ef29c44ede9e2d0a375fbf4a4c0ce6be /drivers/gpio/rdc321x-gpio.c | |
parent | 8deca39e5caf7a20fc3786548dc9bfb7f0ae14b6 (diff) | |
download | kernel_samsung_smdk4412-75907a1153b42100b7a5e960bfe47d208d726309.zip kernel_samsung_smdk4412-75907a1153b42100b7a5e960bfe47d208d726309.tar.gz kernel_samsung_smdk4412-75907a1153b42100b7a5e960bfe47d208d726309.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpio/rdc321x-gpio.c')
-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 22f31dc..2762698 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, gpch->data_reg[reg] &= ~(1 << (gpio & 0x1f)); pci_write_config_dword(gpch->sb_pdev, - reg ? gpch->reg1_data_base : gpch->reg2_data_base, + reg ? gpch->reg2_data_base : gpch->reg1_data_base, gpch->data_reg[reg]); } |