diff options
author | Joerg Roedel <jroedel@suse.de> | 2018-11-30 14:23:19 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2018-12-17 10:38:43 +0100 |
commit | bf8763d8f8376e98ea2a8e0fc4803f25ff91393e (patch) | |
tree | cee2699a489cf48073dce01171436ff0f04cdbb0 /arch/powerpc/kernel/eeh.c | |
parent | ACPI/IORT: Use device_iommu_mapped() (diff) | |
download | linux-bf8763d8f8376e98ea2a8e0fc4803f25ff91393e.tar.xz linux-bf8763d8f8376e98ea2a8e0fc4803f25ff91393e.zip |
powerpc/iommu: Use device_iommu_mapped()
Use the new function to replace the open-coded iommu check.
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Russell Currey <ruscur@russell.cc>
Cc: Sam Bobroff <sbobroff@linux.ibm.com>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'arch/powerpc/kernel/eeh.c')
-rw-r--r-- | arch/powerpc/kernel/eeh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c index 6cae6b56ffd6..23fe62f11486 100644 --- a/arch/powerpc/kernel/eeh.c +++ b/arch/powerpc/kernel/eeh.c @@ -1472,7 +1472,7 @@ static int dev_has_iommu_table(struct device *dev, void *data) if (!dev) return 0; - if (dev->iommu_group) { + if (device_iommu_mapped(dev)) { *ppdev = pdev; return 1; } |