]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx6: fix bogus use of irq_get_irq_data
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 2 Dec 2014 16:05:26 +0000 (16:05 +0000)
committerOlof Johansson <olof@lixom.net>
Fri, 5 Dec 2014 07:24:51 +0000 (23:24 -0800)
commite24b5ccf4dc0f4cac4f5140be428d26a06cd4ec7
tree97a06e6f2400b1719748d29e732f8d13ce4ba33e
parent47ee42094c98c9ada20ee8fc7b7d3704d9f395da
ARM: imx6: fix bogus use of irq_get_irq_data

The imx6 PM code seems to be quite creative in its use of irq_data,
using something that is very much a hardware interrupt number where
we expect a virtual one.  Yes, it worked so far, but that's only
luck, and it will definitely explode in 3.19.

Fix it by using a pair of helper functions that deal with the
actual hardware.

Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-imx/common.h
arch/arm/mach-imx/gpc.c
arch/arm/mach-imx/pm-imx6.c