From 5e4188b6e495a010605ce9f2267241ae7e8d0307 Mon Sep 17 00:00:00 2001 From: Michael Ellerman Date: Wed, 30 Jan 2008 01:13:58 +1100 Subject: [PATCH] --- yaml --- r: 81427 b: refs/heads/master c: 1f62a1626e53e7b851e3e059cbd2fdc99cb85c05 h: refs/heads/master i: 81425: e2eec0bb44596ba1e9728a97ddf665520e5168c0 81423: 0bdd768bd220649fcf96e4df498ace97d839c5cd v: v3 --- [refs] | 2 +- trunk/include/asm-powerpc/dma-mapping.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 774a649f3e67..90355a8743a1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bd45ac0c5daae35e7c71138172e63df5cf644cf6 +refs/heads/master: 1f62a1626e53e7b851e3e059cbd2fdc99cb85c05 diff --git a/trunk/include/asm-powerpc/dma-mapping.h b/trunk/include/asm-powerpc/dma-mapping.h index 5eea6dbc0aa2..bbefb69bfb67 100644 --- a/trunk/include/asm-powerpc/dma-mapping.h +++ b/trunk/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);