projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7692537
)
ath79: lzma-loader: fix syntax error
author
Shiji Yang
<yangshiji66@qq.com>
Sun, 17 Nov 2024 11:30:35 +0000
(19:30 +0800)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Sat, 23 Nov 2024 22:23:23 +0000
(23:23 +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>
(cherry picked from commit
98f26346cbbb45e5c0417f57846ce1783e884ea2
)
target/linux/ath79/image/lzma-loader/src/board.c
patch
|
blob
|
history
diff --git
a/target/linux/ath79/image/lzma-loader/src/board.c
b/target/linux/ath79/image/lzma-loader/src/board.c
index 04aa348b1f2e0cf0a0f3e3ffc8cfa8575f08fdec..c9840b745881b008855e55d095e90b22381a0f29 100644
(file)
--- 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));
-#el
se
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