irqchip/irq-ls1x: Missing error code in ls1x_intc_of_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 29 Mar 2019 06:21:37 +0000 (09:21 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 5 Apr 2019 12:37:56 +0000 (14:37 +0200)
commit95c5c618fa4349b2ba13aebeabf71911208dfc5e
treed1e981c0a8a22599bf75ac6c1815ab18b4337563
parent79a3aaa7b82e3106be97842dedfd8429248896e6
irqchip/irq-ls1x: Missing error code in ls1x_intc_of_init()

Currently, when irq_domain_add_linear() fails, the error code does not get
set so it returns zero which is wrong.  Fix it by setting the appropriate
error code.

Fixes: 9e543e22e204 ("irqchip: Add driver for Loongson-1 interrupt controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: kernel-janitors@vger.kernel.org
Link: https://lkml.kernel.org/r/20190329062136.GQ32613@kadam
drivers/irqchip/irq-ls1x.c