]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/mbigen: Fix return value check in mbigen_device_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 27 Apr 2017 15:21:13 +0000 (15:21 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 30 Apr 2017 09:21:16 +0000 (11:21 +0200)
commit0b9fff30cf8c1ff7792654e1bcc2ed51938787a4
tree18ebe0f5c2cc5e2cda60951066adbddeae67c6b2
parent4685d33b949ed31901cb1fa5a36e392113ec16bb
irqchip/mbigen: Fix return value check in mbigen_device_probe()

In case of error, the function devm_ioremap() returns NULL pointer
not ERR_PTR(). Use devm_ioremap_resource() instead of devm_ioremap()
to fix the IS_ERR() test issue.

Fixes: 9d78bd2f33b0 ("irqchip/mbigen: Introduce mbigen_of_create_domain()")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/20170427152113.31147-1-weiyj.lk@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-mbigen.c