aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2010-06-13 19:53:19 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2010-06-13 19:53:19 +0000
commit1aadefd9bf4e5f14e652f96206201a56e462b4e2 (patch)
tree137059f1480113c81bb6a1f498c340700cad47a0 /package
parentfb1058d1f9ebf6b921fc56780e9798d12e8e1952 (diff)
downloadupstream-1aadefd9bf4e5f14e652f96206201a56e462b4e2.tar.gz
upstream-1aadefd9bf4e5f14e652f96206201a56e462b4e2.tar.bz2
upstream-1aadefd9bf4e5f14e652f96206201a56e462b4e2.zip
mac80211: fix build of b43
SVN-Revision: 21790
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/0170-dma_set_coherent_mask.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/mac80211/patches/0170-dma_set_coherent_mask.patch b/package/mac80211/patches/0170-dma_set_coherent_mask.patch
new file mode 100644
index 0000000000..9bafbeb87e
--- /dev/null
+++ b/package/mac80211/patches/0170-dma_set_coherent_mask.patch
@@ -0,0 +1,28 @@
+From 3c02b107ec11e14ef21e7a444ad83f0ef1e68f79 Mon Sep 17 00:00:00 2001
+From: Hauke Mehrtens <hauke@hauke-m.de>
+Date: Sun, 13 Jun 2010 20:41:55 +0200
+Subject: [PATCH 1/2] compat: backport dma_set_coherent_mask
+
+
+Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
+---
+ include/linux/compat-2.6.34.h | 8 ++++++++
+ 1 files changed, 8 insertions(+), 0 deletions(-)
+
+--- a/include/linux/compat-2.6.34.h
++++ b/include/linux/compat-2.6.34.h
+@@ -216,6 +216,14 @@ do { \
+ #define dma_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0)
+ #endif
+
++static inline int dma_set_coherent_mask(struct device *dev, u64 mask)
++{
++ if (!dma_supported(dev, mask))
++ return -EIO;
++ dev->coherent_dma_mask = mask;
++ return 0;
++}
++
+ #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)) */
+
+ #endif /* LINUX_26_34_COMPAT_H */