irqchip: crossbar: Return proper error value
authorNishanth Menon <nm@ti.com>
Thu, 26 Jun 2014 07:10:27 +0000 (12:40 +0530)
committerJason Cooper <jason@lakedaemon.net>
Mon, 30 Jun 2014 19:11:24 +0000 (19:11 +0000)
commitedb442def98c3c64acc316b6b1a64791c138ab07
tree34bdb1a3584dd9cb56cb69e477a90e805a69a76f
parente30ef8abb383903f2b7e1bced971b98fd30cafc3
irqchip: crossbar: Return proper error value

crossbar_of_init always returns -ENOMEM in case of errors.
There can be other causes of failure like invalid data from
DT. So return a appropriate error value for that case.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Sricharan R <r.sricharan@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Link: https://lkml.kernel.org/r/1403766634-18543-10-git-send-email-r.sricharan@ti.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-crossbar.c