iommu/ipmmu-vmsa: Return proper error if devm_request_irq fails
authorAxel Lin <axel.lin@ingics.com>
Sat, 1 Nov 2014 03:45:32 +0000 (11:45 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 4 Nov 2014 14:08:16 +0000 (15:08 +0100)
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>
drivers/iommu/ipmmu-vmsa.c

index 7dab5cbcc775414e5d8e20b48cedf6fed439a7d3..d25fa125e8699d0113fb3d119c628106507c184c 100644 (file)
@@ -1184,7 +1184,7 @@ static int ipmmu_probe(struct platform_device *pdev)
                               dev_name(&pdev->dev), mmu);
        if (ret < 0) {
                dev_err(&pdev->dev, "failed to request IRQ %d\n", irq);
-               return irq;
+               return ret;
        }
 
        ipmmu_device_reset(mmu);