From: Arnd Bergmann Date: Thu, 10 Aug 2017 16:45:22 +0000 (+0100) Subject: ACPI/IORT: Fix build regression without IOMMU X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d36037a9a07f88c2dc7eea5d1991f282e0a9901;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ACPI/IORT: Fix build regression without IOMMU A recent change reintroduced a bug that had previously been fixed by commit d49f2dedf33b ("ACPI/IORT: Fix CONFIG_IOMMU_API dependency"): drivers/acpi/arm64/iort.c: In function 'iort_iommu_configure': drivers/acpi/arm64/iort.c:829:26: error: 'struct iommu_fwspec' has no member named 'ops' Replace a direct reference to iommu_fwspec->ops with a helper function call to fix the issue. Signed-off-by: Arnd Bergmann Signed-off-by: Lorenzo Pieralisi Cc: Will Deacon Cc: Robin Murphy Signed-off-by: Catalin Marinas --- diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index 34972d7f4d29..736783c67ea0 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -773,7 +773,7 @@ const struct iommu_ops *iort_iommu_configure(struct device *dev) * add_device callback for dev, replay it to get things in order. */ if (!err) { - ops = dev->iommu_fwspec->ops; + ops = iort_fwspec_iommu_ops(dev->iommu_fwspec); err = iort_add_device_replay(ops, dev); }