[openwrt/openwrt] ath79: lzma-loader: fix syntax error

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 23 14:25:07 PST 2024


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/d557e2393236d1b2eb99008121b9e163c000ed8d

commit d557e2393236d1b2eb99008121b9e163c000ed8d
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Sun Nov 17 19:30:35 2024 +0800

    ath79: lzma-loader: fix syntax error
    
    C compiler can't parse '#else if'.
    
    Fixes: f84a9f7dc095 ("ath79: add support for Huawei AP6010DN")
    Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
    Link: https://github.com/openwrt/openwrt/pull/16989
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    (cherry picked from commit 98f26346cbbb45e5c0417f57846ce1783e884ea2)
---
 target/linux/ath79/image/lzma-loader/src/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ath79/image/lzma-loader/src/board.c b/target/linux/ath79/image/lzma-loader/src/board.c
index 04aa348b1f..c9840b7458 100644
--- a/target/linux/ath79/image/lzma-loader/src/board.c
+++ b/target/linux/ath79/image/lzma-loader/src/board.c
@@ -204,7 +204,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




More information about the lede-commits mailing list