ath79: lzma-loader: fix syntax error
authorShiji Yang <yangshiji66@qq.com>
Sun, 17 Nov 2024 11:30:35 +0000 (19:30 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 17 Nov 2024 15:26:41 +0000 (16:26 +0100)
C compiler can't parse '#else if'.

Fixes: f84a9f7dc095 ("ath79: add support for Huawei AP6010DN")
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/16989
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ath79/image/lzma-loader/src/board.c

index 14451085085ce1b832670ddddd064aa5a3611847..294ca307d5d797dac48b83a27ae185872b2e58e1 100644 (file)
@@ -209,7 +209,7 @@ static inline void huawei_ap_init(void)
 #if defined(CONFIG_BOARD_HUAWEI_AP5030DN)
        WRITEREG(gpiobase + AR934X_GPIO_REG_OUT_FUNC3,
                        reg | (QCA955X_GPIO_OUTSEL_CLK_OBS5 << 24));
-#else if defined(CONFIG_BOARD_HUAWEI_AP6010DN)
+#elif defined(CONFIG_BOARD_HUAWEI_AP6010DN)
        WRITEREG(gpiobase + AR934X_GPIO_REG_OUT_FUNC3,
                        reg | (AR934X_GPIO_OUTSEL_CLK_OBS4 << 24));
 #endif