提交 f884f6ee 编写于 作者: J Joerg Roedel

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: NVinod Koul <vkoul@kernel.org>
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 05afde1a
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册