Skip to content

Commit

Permalink
Input: ucb1400_ts - IRQ probe fix
Browse files Browse the repository at this point in the history
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: Vernon Sauder <vsauder@inhand.com>
Acked-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Vernon Sauder authored and Dmitry Torokhov committed Apr 24, 2008
1 parent a22b4b2 commit 48bdce4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/input/touchscreen/ucb1400_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 48bdce4

Please sign in to comment.