iommu: Remove is_pci_dev() fall-back from iommu_group_get_for_dev
authorJoerg Roedel <jroedel@suse.de>
Wed, 21 Oct 2015 21:51:42 +0000 (23:51 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 21 Oct 2015 22:00:49 +0000 (00:00 +0200)
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 <jroedel@suse.de>
drivers/iommu/iommu.c

index a80c9c5c26509336506de25da37929d52323c46d..e2b5526506fd4a81423dd3c3fc600fe4c8f432fd 100644 (file)
@@ -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;