diff options
author | Christoph Hellwig <hch@lst.de> | 2020-09-11 11:56:03 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-10-06 08:07:03 +0300 |
commit | 5af638931eb374aa0894d8343cee72f50307ef20 (patch) | |
tree | 1019958fe55ef03dada9b48da1dc4117c7f7bcd8 /include/linux/dma-contiguous.h | |
parent | 8df4051232152a0520ab3035c2d96f33083c2d6a (diff) | |
download | linux-5af638931eb374aa0894d8343cee72f50307ef20.tar.xz |
dma-contiguous: remove dev_set_cma_area
dev_set_cma_area contains a trivial assignment. It has just three
callers that all have a non-NULL device and depend on CONFIG_DMA_CMA,
so remove the wrapper.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/dma-contiguous.h')
-rw-r--r-- | include/linux/dma-contiguous.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/dma-contiguous.h b/include/linux/dma-contiguous.h index 62fd55d07235..41ec08d81bc3 100644 --- a/include/linux/dma-contiguous.h +++ b/include/linux/dma-contiguous.h @@ -66,12 +66,6 @@ static inline struct cma *dev_get_cma_area(struct device *dev) return dma_contiguous_default_area; } -static inline void dev_set_cma_area(struct device *dev, struct cma *cma) -{ - if (dev) - dev->cma_area = cma; -} - static inline void dma_contiguous_set_default(struct cma *cma) { dma_contiguous_default_area = cma; @@ -97,8 +91,6 @@ static inline struct cma *dev_get_cma_area(struct device *dev) return NULL; } -static inline void dev_set_cma_area(struct device *dev, struct cma *cma) { } - static inline void dma_contiguous_set_default(struct cma *cma) { } static inline void dma_contiguous_reserve(phys_addr_t limit) { } |