diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2008-01-30 01:13:58 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-31 12:11:09 +1100 |
commit | 1f62a1626e53e7b851e3e059cbd2fdc99cb85c05 (patch) | |
tree | c97f001a59ed96a6837cc423ce3e12d33cbc3434 /include | |
parent | bd45ac0c5daae35e7c71138172e63df5cf644cf6 (diff) | |
download | linux-1f62a1626e53e7b851e3e059cbd2fdc99cb85c05.tar.gz linux-1f62a1626e53e7b851e3e059cbd2fdc99cb85c05.tar.bz2 linux-1f62a1626e53e7b851e3e059cbd2fdc99cb85c05.zip |
[POWERPC] Add set_dma_ops() to match get_dma_ops()
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/dma-mapping.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-powerpc/dma-mapping.h b/include/asm-powerpc/dma-mapping.h index 5eea6dbc0aa2..bbefb69bfb67 100644 --- 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); |