irqchip: brcmstb-l2: Fix error handling of irq_of_parse_and_map

Return value of irq_of_parse_and_map() is unsigned int, with 0
indicating failure, so testing for negative result never works.

Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Kevin Cernekee <cernekee@gmail.com>
Link: https://lkml.kernel.org/r/20141114221642.GA37468@dtor-ws
Signed-off-by: Jason Cooper <jason@lakedaemon.net>

authored by Dmitry Torokhov and committed by Jason Cooper d99ba446 714710e1

Changed files
+2 -2
drivers
+2 -2
drivers/irqchip/irq-brcmstb-l2.c
··· 135 135 __raw_writel(0xffffffff, data->base + CPU_CLEAR); 136 136 137 137 data->parent_irq = irq_of_parse_and_map(np, 0); 138 - if (data->parent_irq < 0) { 138 + if (!data->parent_irq) { 139 139 pr_err("failed to find parent interrupt\n"); 140 - ret = data->parent_irq; 140 + ret = -EINVAL; 141 141 goto out_unmap; 142 142 } 143 143