[source] kernel: owl-loader: fix compile warning
LEDE Commits
lede-commits at lists.infradead.org
Sun Oct 1 07:44:08 PDT 2017
hauke pushed a commit to source.git, branch master:
https://git.lede-project.org/dbbb4df1631cf2f2e69e640d528ed78f4bdb62ea
commit dbbb4df1631cf2f2e69e640d528ed78f4bdb62ea
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sun Oct 1 16:11:58 2017 +0200
kernel: owl-loader: fix compile warning
check if the config option CONFIG_LANTIQ is defined.
This fixes the following warning:
CC [M] drivers/misc/owl-loader.o
drivers/misc/owl-loader.c: In function 'ath9k_pci_fixup':
drivers/misc/owl-loader.c:92:5: warning: "CONFIG_LANTIQ" is not defined [-Wundef]
#if CONFIG_LANTIQ
^
Fixes: e9401a2335cc ("kernel: owl-loader for delayed Atheros ath9k fixup")
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/generic/files/drivers/misc/owl-loader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/generic/files/drivers/misc/owl-loader.c b/target/linux/generic/files/drivers/misc/owl-loader.c
index 30340da..f11cb2b 100644
--- a/target/linux/generic/files/drivers/misc/owl-loader.c
+++ b/target/linux/generic/files/drivers/misc/owl-loader.c
@@ -89,7 +89,7 @@ static int ath9k_pci_fixup(struct pci_dev *pdev, const u16 *cal_data,
val = swahb32(val);
}
-#if CONFIG_LANTIQ
+#ifdef CONFIG_LANTIQ
val = swab32(val);
#endif
More information about the lede-commits
mailing list