From: Jean-Philippe Brucker Date: Fri, 3 Jun 2016 10:50:30 +0000 (+0100) Subject: iommu/arm-smmu: Wire up map_sg for arm-smmu-v3 X-Git-Tag: v4.14-rc1~2951^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9aeb26cfc2abc96be42b9df2d0f2dc5d805084ff;p=platform%2Fkernel%2Flinux-rpi.git iommu/arm-smmu: Wire up map_sg for arm-smmu-v3 The map_sg callback is missing from arm_smmu_ops, but is required by iommu.h. Similarly to most other IOMMU drivers, connect it to default_iommu_map_sg. Cc: Signed-off-by: Jean-Philippe Brucker Signed-off-by: Will Deacon Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index 94b6821..5f6b3bc 100644 --- a/drivers/iommu/arm-smmu-v3.c +++ b/drivers/iommu/arm-smmu-v3.c @@ -1941,6 +1941,7 @@ static struct iommu_ops arm_smmu_ops = { .attach_dev = arm_smmu_attach_dev, .map = arm_smmu_map, .unmap = arm_smmu_unmap, + .map_sg = default_iommu_map_sg, .iova_to_phys = arm_smmu_iova_to_phys, .add_device = arm_smmu_add_device, .remove_device = arm_smmu_remove_device,