Skip to content
Commit f9f3232a authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

dma-mapping: explicitly wire up ->mmap and ->get_sgtable



While the default ->mmap and ->get_sgtable implementations work for the
majority of our dma_map_ops impementations they are inherently safe
for others that don't use the page allocator or CMA and/or use their
own way of remapping not covered by the common code.  So remove the
defaults if these methods are not wired up, but instead wire up the
default implementations for all safe instances.

Fixes: e1c7e324 ("dma-mapping: always provide the dma_map_ops based implementation")
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 14451467
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment