summaryrefslogtreecommitdiff
path: root/patches/0021-umode_t-api-change/drivers_net_wireless_ath_ath9k_debug.patch
diff options
context:
space:
mode:
authorDominik Sliwa <dominik.sliwa@toradex.com>2019-02-21 10:23:08 +0100
committerDominik Sliwa <dominik.sliwa@toradex.com>2019-02-21 10:23:44 +0100
commit0bdb080c70495ea4efbed7661b4fe6100bd5adde (patch)
tree9b0e0278c74c56b724540c9c12621f2fed70a6ff /patches/0021-umode_t-api-change/drivers_net_wireless_ath_ath9k_debug.patch
parente5561ba59729bf97f11bc11bb61fd4ef5c08c3b9 (diff)
Revert "backports: Remove unused parts"
This reverts commit ab3fd3b9a801a9faa2619e2e65207e736f859a6d.
Diffstat (limited to 'patches/0021-umode_t-api-change/drivers_net_wireless_ath_ath9k_debug.patch')
-rw-r--r--patches/0021-umode_t-api-change/drivers_net_wireless_ath_ath9k_debug.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/patches/0021-umode_t-api-change/drivers_net_wireless_ath_ath9k_debug.patch b/patches/0021-umode_t-api-change/drivers_net_wireless_ath_ath9k_debug.patch
new file mode 100644
index 00000000..a64c0290
--- /dev/null
+++ b/patches/0021-umode_t-api-change/drivers_net_wireless_ath_ath9k_debug.patch
@@ -0,0 +1,14 @@
+--- a/drivers/net/wireless/ath/ath9k/spectral.c
++++ b/drivers/net/wireless/ath/ath9k/spectral.c
+@@ -478,7 +478,11 @@ static const struct file_operations fops
+
+ static struct dentry *create_buf_file_handler(const char *filename,
+ struct dentry *parent,
++#if LINUX_VERSION_IS_GEQ(3,3,0)
+ umode_t mode,
++#else
++ int mode,
++#endif
+ struct rchan_buf *buf,
+ int *is_global)
+ {