summaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-05-16 13:36:54 +0200
committerMichal Simek <michal.simek@xilinx.com>2014-06-04 06:59:58 +0200
commit635eca2d31bfc44b519a50e0cdf9ad9125179906 (patch)
treeb42a7a2c65be3066070b230b48d28ebfcc4b630c /arch/microblaze
parent193bca5934db1ca1d0ffcedf551030ff5556a07c (diff)
downloadop-kernel-dev-635eca2d31bfc44b519a50e0cdf9ad9125179906.zip
op-kernel-dev-635eca2d31bfc44b519a50e0cdf9ad9125179906.tar.gz
microblaze: Clean device dma_ops structure
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>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/include/asm/device.h2
-rw-r--r--arch/microblaze/include/asm/dma-mapping.h7
2 files changed, 0 insertions, 9 deletions
diff --git a/arch/microblaze/include/asm/device.h b/arch/microblaze/include/asm/device.h
index eb639b4..aae3b3c 100644
--- a/arch/microblaze/include/asm/device.h
+++ b/arch/microblaze/include/asm/device.h
@@ -12,8 +12,6 @@
struct device_node;
struct dev_archdata {
- /* DMA operations on that device */
- struct dma_map_ops *dma_ops;
};
struct pdev_archdata {
diff --git a/arch/microblaze/include/asm/dma-mapping.h b/arch/microblaze/include/asm/dma-mapping.h
index cf80560..48180ea 100644
--- a/arch/microblaze/include/asm/dma-mapping.h
+++ b/arch/microblaze/include/asm/dma-mapping.h
@@ -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);
OpenPOWER on IntegriCloud