Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f884f6ee authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 05afde1a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}