ar71xx: Fix gpio_count setting for QCA953x in ath79_gpio_output_select
authorFelix Fietkau <nbd@openwrt.org>
Sun, 2 Aug 2015 15:30:35 +0000 (15:30 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 2 Aug 2015 15:30:35 +0000 (15:30 +0000)
Reported-by: Steve Brown <sbrown@cortland.com>
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
SVN-Revision: 46547

target/linux/ar71xx/patches-3.18/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
target/linux/ar71xx/patches-4.1/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch

index af828b04bffdff7129247409359987c805bfd045..24ce7d83c56dba9f8102a648b24bee335a5c180f 100644 (file)
@@ -14,7 +14,7 @@
 +              gpio_count = AR934X_GPIO_COUNT;
 +              reg_base = AR934X_GPIO_REG_OUT_FUNC0;
 +      } else if (soc_is_qca953x()) {
-+              reg_base = QCA953X_GPIO_COUNT;
++              gpio_count = QCA953X_GPIO_COUNT;
 +              reg_base = QCA953X_GPIO_REG_OUT_FUNC0;
 +      } else if (soc_is_qca955x()) {
 +              gpio_count = QCA955X_GPIO_COUNT;
index af828b04bffdff7129247409359987c805bfd045..24ce7d83c56dba9f8102a648b24bee335a5c180f 100644 (file)
@@ -14,7 +14,7 @@
 +              gpio_count = AR934X_GPIO_COUNT;
 +              reg_base = AR934X_GPIO_REG_OUT_FUNC0;
 +      } else if (soc_is_qca953x()) {
-+              reg_base = QCA953X_GPIO_COUNT;
++              gpio_count = QCA953X_GPIO_COUNT;
 +              reg_base = QCA953X_GPIO_REG_OUT_FUNC0;
 +      } else if (soc_is_qca955x()) {
 +              gpio_count = QCA955X_GPIO_COUNT;