diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-06-07 07:59:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-07-07 10:01:07 +0200 |
commit | 8b6c44f10087fedfb2e041e964b373df53c65514 (patch) | |
tree | 10517911ef01f7beca7c837ca22ded52ed5c12fb /arch/arm/plat-mxc/irq-common.c | |
parent | ARM: mxs/mx28evk: add leds-gpio device for heartbeat (diff) | |
download | linux-8b6c44f10087fedfb2e041e964b373df53c65514.tar.xz linux-8b6c44f10087fedfb2e041e964b373df53c65514.zip |
ARM: mxc: convert tzic to use generic irq chip
The patch converts mxc tzic interrupt controller to use generic irq
chip.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/irq-common.c')
-rw-r--r-- | arch/arm/plat-mxc/irq-common.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/arm/plat-mxc/irq-common.c b/arch/arm/plat-mxc/irq-common.c index e1c6eff7258a..96953e2e4f11 100644 --- a/arch/arm/plat-mxc/irq-common.c +++ b/arch/arm/plat-mxc/irq-common.c @@ -42,17 +42,16 @@ EXPORT_SYMBOL(imx_irq_set_priority); int mxc_set_irq_fiq(unsigned int irq, unsigned int type) { - struct mxc_irq_chip *chip; - struct irq_chip *base; + struct irq_chip_generic *gc; + int (*set_irq_fiq)(unsigned int, unsigned int); int ret; ret = -ENOSYS; - base = irq_get_chip(irq); - if (base) { - chip = container_of(base, struct mxc_irq_chip, base); - if (chip->set_irq_fiq) - ret = chip->set_irq_fiq(irq, type); + gc = irq_get_chip_data(irq); + if (gc && gc->private) { + set_irq_fiq = gc->private; + ret = set_irq_fiq(irq, type); } return ret; |