aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Botö <erik.boto@pelagicore.com>2011-05-20 02:40:18 -0400
committerGrant Likely <grant.likely@secretlab.ca>2011-05-20 02:40:18 -0400
commitcc300d9ead66235e23c674babb8a4ae4ad4c9db8 (patch)
treec0fe939534c0a69e8ea6ee75bb64e6fabeb14cde
parent8fa0c9bf82b0b8697ace9532c5a50a0f4e0c7bb5 (diff)
gpio/pca953x: Use handle_simple_irq instead of handle_edge_irq
Make pca953x driver use the simple irq handler since no hardware control is necessary and the driver lacks an irq_ack function. handle_edge_irq() calls chip->irq_ack() which crashes since this function does not exist. Signed-off-by: Erik Botö <erik.boto@pelagicore.com> Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
-rw-r--r--drivers/gpio/pca953x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c
index 7630ab7b9bec..78a843947d82 100644
--- a/drivers/gpio/pca953x.c
+++ b/drivers/gpio/pca953x.c
@@ -397,7 +397,7 @@ static int pca953x_irq_setup(struct pca953x_chip *chip,
397 397
398 irq_set_chip_data(irq, chip); 398 irq_set_chip_data(irq, chip);
399 irq_set_chip_and_handler(irq, &pca953x_irq_chip, 399 irq_set_chip_and_handler(irq, &pca953x_irq_chip,
400 handle_edge_irq); 400 handle_simple_irq);
401#ifdef CONFIG_ARM 401#ifdef CONFIG_ARM
402 set_irq_flags(irq, IRQF_VALID); 402 set_irq_flags(irq, IRQF_VALID);
403#else 403#else