irqchip/exiu: Fix return value check in exiu_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 14 Nov 2017 06:57:28 +0000 (06:57 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Nov 2017 10:27:22 +0000 (11:27 +0100)
commit0e54705b0e01dcaf3eb2a496bb66d5f05012056b
tree4009c0031c144d5991a9c8623dadb36de7396650
parent41cc30412d6692c25506bf2d4e65c4364c70c10a
irqchip/exiu: Fix return value check in exiu_init()

In case of error, the function of_iomap() returns NULL pointer not
ERR_PTR().

Replace the IS_ERR() test of the return value with NULL test and return
a proper error code.

Fixes: 706cffc1b912 ("irqchip/exiu: Add support for Socionext Synquacer EXIU controller")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Link: https://lkml.kernel.org/r/1510642648-123574-1-git-send-email-weiyongjun1@huawei.com
drivers/irqchip/irq-sni-exiu.c