Skip to content

Commit d2d0910

Browse files
seehearfeelgregkh
authored andcommitted
irqchip/ti-sci-inta: Fix return value about devm_ioremap_resource()
[ Upstream commit 4b127a1 ] When call function devm_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: 9f1463b ("irqchip/ti-sci-inta: Add support for Interrupt Aggregator driver") Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com> Link: https://lore.kernel.org/r/1591437017-5295-2-git-send-email-yangtiezhu@loongson.cn Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8705ff6 commit d2d0910

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/irqchip/irq-ti-sci-inta.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ static int ti_sci_inta_irq_domain_probe(struct platform_device *pdev)
572572
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
573573
inta->base = devm_ioremap_resource(dev, res);
574574
if (IS_ERR(inta->base))
575-
return -ENODEV;
575+
return PTR_ERR(inta->base);
576576

577577
domain = irq_domain_add_linear(dev_of_node(dev),
578578
ti_sci_get_num_resources(inta->vint),

0 commit comments

Comments
 (0)