1 From 3c02b107ec11e14ef21e7a444ad83f0ef1e68f79 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Sun, 13 Jun 2010 20:41:55 +0200
4 Subject: [PATCH 1/2] compat: backport dma_set_coherent_mask
7 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 include/linux/compat-2.6.34.h | 8 ++++++++
10 1 files changed, 8 insertions(+), 0 deletions(-)
12 --- a/include/linux/compat-2.6.34.h
13 +++ b/include/linux/compat-2.6.34.h
14 @@ -216,6 +216,14 @@ do { \
15 #define dma_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0)
18 +static inline int dma_set_coherent_mask(struct device *dev, u64 mask)
20 + if (!dma_supported(dev, mask))
22 + dev->coherent_dma_mask = mask;
26 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)) */
28 #endif /* LINUX_26_34_COMPAT_H */