Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Erik Botö and committed by
Grant Likely
cc300d9e 8fa0c9bf

+1 -1
+1 -1
drivers/gpio/pca953x.c
··· 397 397 398 398 irq_set_chip_data(irq, chip); 399 399 irq_set_chip_and_handler(irq, &pca953x_irq_chip, 400 - handle_edge_irq); 400 + handle_simple_irq); 401 401 #ifdef CONFIG_ARM 402 402 set_irq_flags(irq, IRQF_VALID); 403 403 #else