Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48bdce4a authored by Vernon Sauder's avatar Vernon Sauder Committed by Dmitry Torokhov
Browse files

Input: ucb1400_ts - IRQ probe fix



The UCB1400 driver IRQ probe code fails to find an interrupt if all
the interrupts in the range 0-31 are nonprobe-able. This patch
removes the check of the return value so interrupts above 31 can be
detected.

Tested on InHand Fingertip4 PXA270 board.

Signed-off-by: default avatarVernon Sauder <vsauder@inhand.com>
Acked-by: default avatarNicolas Pitre <nico@marvell.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent a22b4b2f
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -427,10 +427,6 @@ static int ucb1400_detect_irq(struct ucb1400 *ucb)
	unsigned long mask, timeout;

	mask = probe_irq_on();
	if (!mask) {
		probe_irq_off(mask);
		return -EBUSY;
	}

	/* Enable the ADC interrupt. */
	ucb1400_reg_write(ucb, UCB_IE_RIS, UCB_IE_ADC);