diff options
author | Christoph Hellwig <hch@lst.de> | 2018-09-25 23:16:55 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-09-26 01:12:26 +0300 |
commit | 1a0afc14b5da329765d6ecd4a79f546b9363ad8c (patch) | |
tree | 760667df33be493811fe60f7e1eb1b6190ed962a /include/linux/dma-mapping.h | |
parent | 9406a49fd1f4379409ed87b29fdaa259b0441912 (diff) | |
download | linux-1a0afc14b5da329765d6ecd4a79f546b9363ad8c.tar.xz |
Revert "dma-mapping: clear dev->dma_ops in arch_teardown_dma_ops"
This reverts commit 46053c73685411915d3de50c5a0045beef32806b.
This change breaks architectures setting up dma_ops in their own magic
way and not using arch_setup_dma_ops, so revert it.
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/dma-mapping.h')
-rw-r--r-- | include/linux/dma-mapping.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index bd81e74cca7b..d23fc45c8208 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -665,10 +665,7 @@ static inline void arch_setup_dma_ops(struct device *dev, u64 dma_base, #endif #ifndef arch_teardown_dma_ops -static inline void arch_teardown_dma_ops(struct device *dev) -{ - dev->dma_ops = NULL; -} +static inline void arch_teardown_dma_ops(struct device *dev) { } #endif static inline unsigned int dma_get_max_seg_size(struct device *dev) |