projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd45ac0
)
[POWERPC] Add set_dma_ops() to match get_dma_ops()
author
Michael Ellerman
<michael@ellerman.id.au>
Tue, 29 Jan 2008 14:13:58 +0000
(
01:13
+1100)
committer
Paul Mackerras
<paulus@samba.org>
Thu, 31 Jan 2008 01:11:09 +0000
(12:11 +1100)
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/dma-mapping.h
patch
|
blob
|
history
diff --git
a/include/asm-powerpc/dma-mapping.h
b/include/asm-powerpc/dma-mapping.h
index 5eea6dbc0aa2d75c2a7f7846bcc89137b315bc8f..bbefb69bfb671e03e866ef54af3c1948c41d9940 100644
(file)
--- a/
include/asm-powerpc/dma-mapping.h
+++ b/
include/asm-powerpc/dma-mapping.h
@@
-76,6
+76,11
@@
static inline struct dma_mapping_ops *get_dma_ops(struct device *dev)
return dev->archdata.dma_ops;
}
+static inline void set_dma_ops(struct device *dev, struct dma_mapping_ops *ops)
+{
+ dev->archdata.dma_ops = ops;
+}
+
static inline int dma_supported(struct device *dev, u64 mask)
{
struct dma_mapping_ops *dma_ops = get_dma_ops(dev);