summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-05-28 18:41:28 +0200
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:15:05 -0700
commiteb95bbc100d14f1fd4526655fa4403ccc3bc5ab2 (patch)
treed7d948d64032e1ded84718fa815e9a5abaa6ffef /drivers/iommu
parentc5cc3073f20e94f2c7419b8499259b9ca7445682 (diff)
iommu: Call remove_device call-back after driver release
Do not remove the device from the IOMMU while the driver is still attached. Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index 6ada5cfbcfcb..82ccfa22ef3e 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -782,7 +782,7 @@ static int iommu_bus_notifier(struct notifier_block *nb,
if (action == BUS_NOTIFY_ADD_DEVICE) {
if (ops->add_device)
return ops->add_device(dev);
- } else if (action == BUS_NOTIFY_DEL_DEVICE) {
+ } else if (action == BUS_NOTIFY_REMOVED_DEVICE) {
if (ops->remove_device && dev->iommu_group) {
ops->remove_device(dev);
return 0;