From: Joerg Roedel Date: Wed, 21 Oct 2015 21:51:42 +0000 (+0200) Subject: iommu: Remove is_pci_dev() fall-back from iommu_group_get_for_dev X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=391811e185408671180745dfd30914bb64f6368e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git iommu: Remove is_pci_dev() fall-back from iommu_group_get_for_dev All callers of iommu_group_get_for_dev() provide a device_group call-back now, so this fall-back is no longer needed. Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index a80c9c5c2650..e2b5526506fd 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -845,8 +845,6 @@ struct iommu_group *iommu_group_get_for_dev(struct device *dev) if (ops && ops->device_group) group = ops->device_group(dev); - else if (dev_is_pci(dev)) - group = pci_device_group(dev); if (IS_ERR(group)) return group;