aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2017-10-01 16:11:58 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2017-10-01 16:40:37 +0200
commitdbbb4df1631cf2f2e69e640d528ed78f4bdb62ea (patch)
tree5aeb5cdce65167e2181977c311e3575827b38cb7 /target/linux/generic/files/drivers
parent25abd71efbc41c6839d2c617f10015423091cb65 (diff)
downloadupstream-dbbb4df1631cf2f2e69e640d528ed78f4bdb62ea.tar.gz
upstream-dbbb4df1631cf2f2e69e640d528ed78f4bdb62ea.tar.bz2
upstream-dbbb4df1631cf2f2e69e640d528ed78f4bdb62ea.zip
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@hauke-m.de>
Diffstat (limited to 'target/linux/generic/files/drivers')
-rw-r--r--target/linux/generic/files/drivers/misc/owl-loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/misc/owl-loader.c b/target/linux/generic/files/drivers/misc/owl-loader.c
index 30340da486..f11cb2b49c 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