diff options
-rw-r--r-- | drivers/iommu/amd_iommu.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 57068e8035b5..bd8003d975bb 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c | |||
@@ -3514,12 +3514,6 @@ int __init amd_iommu_init_passthrough(void) | |||
3514 | dev_data = get_dev_data(&dev->dev); | 3514 | dev_data = get_dev_data(&dev->dev); |
3515 | dev_data->passthrough = true; | 3515 | dev_data->passthrough = true; |
3516 | 3516 | ||
3517 | devid = get_device_id(&dev->dev); | ||
3518 | |||
3519 | iommu = amd_iommu_rlookup_table[devid]; | ||
3520 | if (!iommu) | ||
3521 | continue; | ||
3522 | |||
3523 | attach_device(&dev->dev, pt_domain); | 3517 | attach_device(&dev->dev, pt_domain); |
3524 | } | 3518 | } |
3525 | 3519 | ||