Commit 75907a1153b42100b7a5e960bfe47d208d726309

Authored by Florian Fainelli
Committed by Samuel Ortiz
1 parent 8deca39e5c

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/gpio/rdc321x-gpio.c
... ... @@ -73,7 +73,7 @@
73 73 gpch->data_reg[reg] &= ~(1 << (gpio & 0x1f));
74 74  
75 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 77 gpch->data_reg[reg]);
78 78 }
79 79