summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-05-28 18:41:26 +0200
committerJoerg Roedel <jroedel@suse.de>2015-06-05 15:13:09 +0200
commit19762d7095e6392b6ec56c363a6f29b2119488c2 (patch)
tree898ce1663cf676e97044be39c3e82f74abdbac63 /drivers/iommu
parent269aa808a990b3fdd0e7ec9e04322284c40748c4 (diff)
downloadblackbird-op-linux-19762d7095e6392b6ec56c363a6f29b2119488c2.tar.gz
blackbird-op-linux-19762d7095e6392b6ec56c363a6f29b2119488c2.zip
iommu: Propagate error in add_iommu_group
Make sure any errors reported from the IOMMU drivers get progapated back to the IOMMU core. Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/iommu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index 755e4889046a..9c9336a923cd 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -750,9 +750,7 @@ static int add_iommu_group(struct device *dev, void *data)
WARN_ON(dev->iommu_group);
- ops->add_device(dev);
-
- return 0;
+ return ops->add_device(dev);
}
static int iommu_bus_notifier(struct notifier_block *nb,
OpenPOWER on IntegriCloud