aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-04-01 08:58:44 -0400
committerJoerg Roedel <jroedel@suse.de>2015-04-02 07:31:07 -0400
commit6c5cc8015793cdfd56d9997bcfddf2740ff716c5 (patch)
treebe7cf43bb83895b4ea47bd4db4e23db129798649
parent940f700dfbe91d37a56ebd26e0a7a681d387326a (diff)
iommu/amd: Use BUS_NOTIFY_REMOVED_DEVICE
Use the new device-notifier event instead of the old BUS_NOTIFY_DEL_DEVICE to make sure the device driver had a chance to uninit the device before all its mappings are teared down. Tested-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r--drivers/iommu/amd_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 48882c126245..8a1dea4d0d26 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -2467,7 +2467,7 @@ static int device_change_notifier(struct notifier_block *nb,
2467 dev->archdata.dma_ops = &amd_iommu_dma_ops; 2467 dev->archdata.dma_ops = &amd_iommu_dma_ops;
2468 2468
2469 break; 2469 break;
2470 case BUS_NOTIFY_DEL_DEVICE: 2470 case BUS_NOTIFY_REMOVED_DEVICE:
2471 2471
2472 iommu_uninit_device(dev); 2472 iommu_uninit_device(dev);
2473 2473