From 6574305b0ed32f286dcebd653a2f3ba4e421f06c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Mon, 8 Feb 2010 21:07:16 +0100 Subject: [PATCH] arm/imx/gpio: remove a BUG_ON in hot path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Now if the problem occurs that triggered the BUG_ON before, the machine runs in a NULL pointer dereference. So it wouldn't be much harder now to debug the situation if it occured. Signed-off-by: Uwe Kleine-König --- arch/arm/plat-mxc/gpio.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/plat-mxc/gpio.c b/arch/arm/plat-mxc/gpio.c index 0b11554..70b2389 100644 --- a/arch/arm/plat-mxc/gpio.c +++ b/arch/arm/plat-mxc/gpio.c @@ -162,8 +162,6 @@ static void mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat) while (irq_stat != 0) { int irqoffset = fls(irq_stat) - 1; - BUG_ON(!(irq_desc[gpio_irq_no_base + irqoffset].handle_irq)); - if (port->both_edges & (1 << irqoffset)) mxc_flip_edge(port, irqoffset); -- 2.7.4