irqchip: mtk-sysirq: Make mtk_sysirq_of_init return error if ioremap fails
authorAxel Lin <axel.lin@ingics.com>
Thu, 21 May 2015 14:57:34 +0000 (22:57 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 22 May 2015 09:06:47 +0000 (11:06 +0200)
commite1a96fb861b0781c8ef66a76d0fc6fb6f628f84c
treeae82549fb97cae1a908d3993432ecedf2602283f
parenta6c761e44cfdeffc31785c698aa04d310e7cd686
irqchip: mtk-sysirq: Make mtk_sysirq_of_init return error if ioremap fails

PTR_ERR(NULL) returns 0 so current code returns 0 if ioremap fails, fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Yingjoe Chen <yingjoe.chen@mediatek.com>
Cc: linux-mediatek@lists.infradead.org <linux-mediatek@lists.infradead.org>
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/1432220254.29544.1.camel@ingics.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-mtk-sysirq.c