diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-10-31 23:45:32 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-11-04 09:08:16 -0500 |
commit | e222d6a4259c134553acab493b5ab9fc05d70132 (patch) | |
tree | 002b92091c28d08489f45cc6472ed7e8db6ba81c /drivers/iommu/ipmmu-vmsa.c | |
parent | 0df1f2487d2f0d04703f142813d53615d62a1da4 (diff) |
iommu/ipmmu-vmsa: Return proper error if devm_request_irq fails
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/ipmmu-vmsa.c')
-rw-r--r-- | drivers/iommu/ipmmu-vmsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 7dab5cbcc775..d25fa125e869 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++ b/drivers/iommu/ipmmu-vmsa.c | |||
@@ -1184,7 +1184,7 @@ static int ipmmu_probe(struct platform_device *pdev) | |||
1184 | dev_name(&pdev->dev), mmu); | 1184 | dev_name(&pdev->dev), mmu); |
1185 | if (ret < 0) { | 1185 | if (ret < 0) { |
1186 | dev_err(&pdev->dev, "failed to request IRQ %d\n", irq); | 1186 | dev_err(&pdev->dev, "failed to request IRQ %d\n", irq); |
1187 | return irq; | 1187 | return ret; |
1188 | } | 1188 | } |
1189 | 1189 | ||
1190 | ipmmu_device_reset(mmu); | 1190 | ipmmu_device_reset(mmu); |