summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2018-11-30 14:29:01 +0100
committerJoerg Roedel <jroedel@suse.de>2018-12-17 12:47:49 +0100
commitf884f6ee62604aec60fe1760f94724be192d97c0 (patch)
tree4ecb3cf0a66b825b0c91b56c52b023e8595cd11f /drivers/dma
parent05afde1a7ef3ddde5e7657b9faeb6347423a9acb (diff)
downloadlinux-f884f6ee62604aec60fe1760f94724be192d97c0.tar.bz2
dmaengine: sh: rcar-dmac: Use device_iommu_mapped()
Use Use device_iommu_mapped() to check if the device is already mapped by an IOMMU. Acked-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/sh/rcar-dmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c
index 74fa2b1a6a86..2b4f25698169 100644
--- a/drivers/dma/sh/rcar-dmac.c
+++ b/drivers/dma/sh/rcar-dmac.c
@@ -1809,7 +1809,7 @@ static int rcar_dmac_probe(struct platform_device *pdev)
* level we can't disable it selectively, so ignore channel 0 for now if
* the device is part of an IOMMU group.
*/
- if (pdev->dev.iommu_group) {
+ if (device_iommu_mapped(&pdev->dev)) {
dmac->n_channels--;
channels_offset = 1;
}