diff options
author | Joerg Roedel <jroedel@suse.de> | 2015-05-28 18:41:28 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-06-05 15:13:10 +0200 |
commit | 843cb6dc7749a25849797cc9aeeb86f87a8acb84 (patch) | |
tree | 2bc5bab005f98474addcad7aae474d0354dcb87b /drivers/iommu | |
parent | 8da30142a21e2d7595510892a4c99cf294f7e6f1 (diff) | |
download | op-kernel-dev-843cb6dc7749a25849797cc9aeeb86f87a8acb84.zip op-kernel-dev-843cb6dc7749a25849797cc9aeeb86f87a8acb84.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index f0e0a23..d69e0ca 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -779,7 +779,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; |