ARM: dma-mapping: Set proper DMA ops in arm_iommu_detach_device()
authorThierry Reding <treding@nvidia.com>
Wed, 30 May 2018 14:06:24 +0000 (16:06 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 Jul 2018 08:06:36 +0000 (18:06 +1000)
commit1874619a7df4b14b23b14877e705ae15325773e3
tree78e4a081d1b571159f0bf7fe3d66e1cd281bb4fd
parent0d466901552a8b4e80cb3c0968e344751c2c9ac3
ARM: dma-mapping: Set proper DMA ops in arm_iommu_detach_device()

Instead of setting the DMA ops pointer to NULL, set the correct,
non-IOMMU ops depending on the device's coherency setting.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
arch/arm/mm/dma-mapping.c