iommu/ipmmu-vmsa: Return proper error if devm_request_irq fails

Signed-off-by: Axel Lin <[email protected]>
Acked-by: Laurent Pinchart <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
Axel Lin 2014-11-01 11:45:32 +08:00 • committed by Joerg Roedel
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);