Skip to content
Commit fa6a8d6d authored by Russell King's avatar Russell King
Browse files

DMA-API: provide a helper to setup DMA masks



Many drivers contain code such as:

	dev->dma_mask = &dev->coherent_dma_mask;
	dev->coherent_dma_mask = MASK;

Let's move this pattern out of drivers and have the DMA API provide a
helper for it.  This helper uses dma_set_mask_and_coherent() to allow
platform issues to be properly dealt with via dma_set_mask()/
dma_is_supported().

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 4ffb4318
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