Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1f62a1626e53e7b851e3e059cbd2fdc99cb85c05 Commit: 1f62a1626e53e7b851e3e059cbd2fdc99cb85c05 Parent: bd45ac0c5daae35e7c71138172e63df5cf644cf6 Author: Michael Ellerman <[EMAIL PROTECTED]> AuthorDate: Wed Jan 30 01:13:58 2008 +1100 Committer: Paul Mackerras <[EMAIL PROTECTED]> CommitDate: Thu Jan 31 12:11:09 2008 +1100
[POWERPC] Add set_dma_ops() to match get_dma_ops() Signed-off-by: Michael Ellerman <[EMAIL PROTECTED]> Acked-by: Arnd Bergmann <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> --- 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 5eea6db..bbefb69 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); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html