diff mbox series

[v5,2/4] irqchip: xilinx: Fill error code when irq domain registration fails

Message ID 20200317125600.15913-3-mubin.usman.sayyed@xilinx.com (mailing list archive)
State Mainlined
Commit c74038baa9bccac76344b7215a55be136c81dfc3
Headers show
Series irqchip: xilinx: Add support for multiple instances | expand

Commit Message

Mubin Usman Sayyed March 17, 2020, 12:55 p.m. UTC
From: Michal Simek <michal.simek@xilinx.com>

There is no ret filled in case of irq_domain_add_linear() failure.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Stefan Asserhall <stefan.asserhall@xilinx.com>
---
 drivers/irqchip/irq-xilinx-intc.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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;
 	}