microblaze: Clean device dma_ops structure
authorMichal Simek <michal.simek@xilinx.com>
Fri, 16 May 2014 11:36:54 +0000 (13:36 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 4 Jun 2014 04:59:58 +0000 (06:59 +0200)
No code is setting up dma_operation for device.
Use dma_direct_ops for all cases.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/device.h
arch/microblaze/include/asm/dma-mapping.h

index eb639b479c7b0e72680a14c6a2abcd0ed6ea3c6a..aae3b3c6a0331c10dad590a671cd862e28645c4a 100644 (file)
@@ -12,8 +12,6 @@
 struct device_node;
 
 struct dev_archdata {
-       /* DMA operations on that device */
-       struct dma_map_ops      *dma_ops;
 };
 
 struct pdev_archdata {
index cf8056011a0aa778acf21d9bb1b44bbd83d33013..48180ea8633af8611199162a31f5741d72b4312e 100644 (file)
@@ -50,16 +50,9 @@ extern struct dma_map_ops dma_direct_ops;
 
 static inline struct dma_map_ops *get_dma_ops(struct device *dev)
 {
-       if (dev && dev->archdata.dma_ops)
-               return dev->archdata.dma_ops;
        return &dma_direct_ops;
 }
 
-static inline void set_dma_ops(struct device *dev, struct dma_map_ops *ops)
-{
-       dev->archdata.dma_ops = ops;
-}
-
 static inline int dma_supported(struct device *dev, u64 mask)
 {
        struct dma_map_ops *ops = get_dma_ops(dev);