Messages in this thread Patch in this message | | | From | Rini van Zetten <> | Subject | [PATCH 1/1] fix crash when no irq_eoi function is available | Date | Wed, 11 Apr 2012 14:09:45 +0200 |
| |
Signed-off-by: Rini van Zetten <rini@arvoo.nl> --- drivers/gpio/gpio-mpc8xxx.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c index 5cd04b6..edcffd6 100644 --- a/drivers/gpio/gpio-mpc8xxx.c +++ b/drivers/gpio/gpio-mpc8xxx.c @@ -163,7 +163,8 @@ static void mpc8xxx_gpio_irq_cascade(unsigned int irq, struct irq_desc *desc) if (mask) generic_handle_irq(irq_linear_revmap(mpc8xxx_gc->irq, 32 - ffs(mask))); - chip->irq_eoi(&desc->irq_data); + if (chip->irq_eoi) + chip->irq_eoi(&desc->irq_data); } static void mpc8xxx_irq_unmask(struct irq_data *d) -- 1.7.4.1
| |