summaryrefslogtreecommitdiff
path: root/patches/0021-umode_t-api-change/ath9k.patch
blob: 1be51cb9ae388307da88b34866d456e00c4d06c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/drivers/net/wireless/ath/ath9k/common-spectral.c
+++ b/drivers/net/wireless/ath/ath9k/common-spectral.c
@@ -1031,7 +1031,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)
 {