diff options
author | Shivaprasad G Bhat <sbhat@linux.ibm.com> | 2024-06-24 14:39:10 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-06-28 09:03:40 +0200 |
commit | 35146eadcb81d72153a1621f3cc0d5588cae19d3 (patch) | |
tree | 89bf727942cac986de552efc148802e4ba36b70a /arch/powerpc/kernel/eeh.c | |
parent | vfio/spapr: Always clear TCEs before unsetting the window (diff) | |
download | linux-35146eadcb81d72153a1621f3cc0d5588cae19d3.tar.xz linux-35146eadcb81d72153a1621f3cc0d5588cae19d3.zip |
powerpc/iommu: Move dev_has_iommu_table() to iommu.c
Move function dev_has_iommu_table() to powerpc/kernel/iommu.c
as it is going to be used by machine specific iommu code as
well in subsequent patches.
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/171923274748.1397.6274953248403106679.stgit@linux.ibm.com
Diffstat (limited to 'arch/powerpc/kernel/eeh.c')
-rw-r--r-- | arch/powerpc/kernel/eeh.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c index 6670063a7a6c..d03f17987fca 100644 --- a/arch/powerpc/kernel/eeh.c +++ b/arch/powerpc/kernel/eeh.c @@ -1273,22 +1273,6 @@ EXPORT_SYMBOL(eeh_dev_release); #ifdef CONFIG_IOMMU_API -static int dev_has_iommu_table(struct device *dev, void *data) -{ - struct pci_dev *pdev = to_pci_dev(dev); - struct pci_dev **ppdev = data; - - if (!dev) - return 0; - - if (device_iommu_mapped(dev)) { - *ppdev = pdev; - return 1; - } - - return 0; -} - /** * eeh_iommu_group_to_pe - Convert IOMMU group to EEH PE * @group: IOMMU group |