diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-02-08 21:07:16 +0100 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-02-24 10:06:58 +0100 |
commit | 6574305b0ed32f286dcebd653a2f3ba4e421f06c (patch) | |
tree | 9e8f3ce3b34885de2fd45d884b72a5daa3d49cff /arch/arm/plat-mxc/gpio.c | |
parent | 3621f188b945a9f9bc1387115834041b7a4619e0 (diff) | |
download | kernel_samsung_smdk4412-6574305b0ed32f286dcebd653a2f3ba4e421f06c.tar.gz kernel_samsung_smdk4412-6574305b0ed32f286dcebd653a2f3ba4e421f06c.tar.bz2 kernel_samsung_smdk4412-6574305b0ed32f286dcebd653a2f3ba4e421f06c.zip |
arm/imx/gpio: remove a BUG_ON in hot path
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 <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/gpio.c')
-rw-r--r-- | arch/arm/plat-mxc/gpio.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/plat-mxc/gpio.c b/arch/arm/plat-mxc/gpio.c index 0b11554dada..70b23893f09 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); |