Skip to content

Commit 98f2634

Browse files
DragonBluephauke
authored andcommitted
ath79: lzma-loader: fix syntax error
C compiler can't parse '#else if'. Fixes: f84a9f7 ("ath79: add support for Huawei AP6010DN") Signed-off-by: Shiji Yang <[email protected]> Link: openwrt/openwrt#16989 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent cd92cbd commit 98f2634

File tree

1 file changed

+1
-1
lines changed
  • target/linux/ath79/image/lzma-loader/src

1 file changed

+1
-1
lines changed

target/linux/ath79/image/lzma-loader/src/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static inline void huawei_ap_init(void)
209209
#if defined(CONFIG_BOARD_HUAWEI_AP5030DN)
210210
WRITEREG(gpiobase + AR934X_GPIO_REG_OUT_FUNC3,
211211
reg | (QCA955X_GPIO_OUTSEL_CLK_OBS5 << 24));
212-
#else if defined(CONFIG_BOARD_HUAWEI_AP6010DN)
212+
#elif defined(CONFIG_BOARD_HUAWEI_AP6010DN)
213213
WRITEREG(gpiobase + AR934X_GPIO_REG_OUT_FUNC3,
214214
reg | (AR934X_GPIO_OUTSEL_CLK_OBS4 << 24));
215215
#endif

0 commit comments

Comments
 (0)