Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 1/2] MIPS: mm: remove mips_dma_mapping_error
@ 2017-12-05 11:50 Felix Fietkau
  2017-12-05 11:50 ` [PATCH 2/2] MIPS: mm: remove no-op dma_map_ops where possible Felix Fietkau
  2018-02-01 11:56 ` [PATCH 1/2] MIPS: mm: remove mips_dma_mapping_error James Hogan
  0 siblings, 2 replies; 3+ messages in thread
From: Felix Fietkau @ 2017-12-05 11:50 UTC (permalink / raw)
  To: linux-mips

dma_mapping_error() already checks if ops->mapping_error is a null
pointer

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 arch/mips/mm/dma-default.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c
index e3e94d05f0fd..1af0cd90cc34 100644
--- a/arch/mips/mm/dma-default.c
+++ b/arch/mips/mm/dma-default.c
@@ -373,11 +373,6 @@ static void mips_dma_sync_sg_for_device(struct device *dev,
 	}
 }
 
-static int mips_dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
-{
-	return 0;
-}
-
 static int mips_dma_supported(struct device *dev, u64 mask)
 {
 	return plat_dma_supported(dev, mask);
@@ -404,7 +399,6 @@ static const struct dma_map_ops mips_default_dma_map_ops = {
 	.sync_single_for_device = mips_dma_sync_single_for_device,
 	.sync_sg_for_cpu = mips_dma_sync_sg_for_cpu,
 	.sync_sg_for_device = mips_dma_sync_sg_for_device,
-	.mapping_error = mips_dma_mapping_error,
 	.dma_supported = mips_dma_supported,
 	.cache_sync = mips_dma_cache_sync,
 };
-- 
2.14.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-01 11:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-05 11:50 [PATCH 1/2] MIPS: mm: remove mips_dma_mapping_error Felix Fietkau
2017-12-05 11:50 ` [PATCH 2/2] MIPS: mm: remove no-op dma_map_ops where possible Felix Fietkau
2018-02-01 11:56 ` [PATCH 1/2] MIPS: mm: remove mips_dma_mapping_error James Hogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox