From: Michael Ellerman Date: Tue, 29 Jan 2008 14:13:58 +0000 (+1100) Subject: [POWERPC] Add set_dma_ops() to match get_dma_ops() X-Git-Tag: v2.6.25-rc1~1131^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1f62a1626e53e7b851e3e059cbd2fdc99cb85c05;p=linux-2.6-omap-h63xx.git [POWERPC] Add set_dma_ops() to match get_dma_ops() Signed-off-by: Michael Ellerman Acked-by: Arnd Bergmann Signed-off-by: Paul Mackerras --- diff --git a/include/asm-powerpc/dma-mapping.h b/include/asm-powerpc/dma-mapping.h index 5eea6dbc0aa..bbefb69bfb6 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);