]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] Add set_dma_ops() to match get_dma_ops()
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 29 Jan 2008 14:13:58 +0000 (01:13 +1100)
committerPaul 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

index 5eea6dbc0aa2d75c2a7f7846bcc89137b315bc8f..bbefb69bfb671e03e866ef54af3c1948c41d9940 100644 (file)
@@ -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);