]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
irqchip/mbigen: Fix memory mapping code
authorHanjun Guo <hanjun.guo@linaro.org>
Fri, 12 May 2017 03:55:26 +0000 (11:55 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:49:53 +0000 (10:49 +0200)
commit7af734ad6aa2c60d813208db0c692db6d3dcb907
tree81bee1f1cceb959c15625909694306f804a1546f
parentc6eabe81aa8b39bb11f1dcbd1dbcbe5c7b17c1af
irqchip/mbigen: Fix memory mapping code

BugLink: https://bugs.launchpad.net/bugs/1692783
Some mbigens share memory regions, and devm_ioremap_resource
does not allow to share resources which will break the probe
of mbigen, in opposition to devm_ioremap.

This patch restores back usage of devm_ioremap function, but
with proper error handling and logging.

Fixes: 216646e4d82e ("irqchip/mbigen: Fix return value check in mbigen_device_probe()")
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: linuxarm@huawei.com
Cc: Wei Yongjun <weiyongjun1@huawei.com>
Cc: MaJun <majun258@huawei.com>
Link: http://lkml.kernel.org/r/1494561328-39514-2-git-send-email-guohanjun@huawei.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
(cherry picked from commit 5ba9b0a14132d0b8d97affe909f324045a968d03)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/irqchip/irq-mbigen.c