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>
This commit is contained in:
Axel Lin 2014-11-01 11:45:32 +08:00 committed by Joerg Roedel
parent 0df1f2487d
commit e222d6a425

View 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);