summaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-xilinx-intc.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2020-03-17 18:25:58 +0530
committerMarc Zyngier <maz@kernel.org>2020-03-22 11:52:53 +0000
commitc74038baa9bccac76344b7215a55be136c81dfc3 (patch)
tree6b50cc027baf374aa0593e2abb722406c57e743e /drivers/irqchip/irq-xilinx-intc.c
parent67862a3c47fcfc9330d153436c7a6604ae3daec9 (diff)
irqchip/xilinx: Fill error code when irq domain registration fails
There is no ret filled in case of irq_domain_add_linear() failure. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Stefan Asserhall <stefan.asserhall@xilinx.com> Link: https://lore.kernel.org/r/20200317125600.15913-3-mubin.usman.sayyed@xilinx.com
Diffstat (limited to 'drivers/irqchip/irq-xilinx-intc.c')
-rw-r--r--drivers/irqchip/irq-xilinx-intc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-xilinx-intc.c b/drivers/irqchip/irq-xilinx-intc.c
index 34593fa34c68..1d3d273309bd 100644
--- a/drivers/irqchip/irq-xilinx-intc.c
+++ b/drivers/irqchip/irq-xilinx-intc.c
@@ -228,6 +228,7 @@ static int __init xilinx_intc_of_init(struct device_node *intc,
&xintc_irq_domain_ops, irqc);
if (!irqc->root_domain) {
pr_err("irq-xilinx: Unable to create IRQ domain\n");
+ ret = -EINVAL;
goto error;
}