Skip to contentSkip to conversation

atm/stallion/ucb1400_ts: remove needless use of irq handler first arg

PATCH New Jeff Garzik 1 participant 1 message Oct 19, 2007

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atm/stallion/ucb1400_ts: remove needless use of irq handler first arg

commit aeb16d7836f97576218fae6f3959c415b0fd09f0

Author: Jeff Garzik <[email protected]>
Date:   Fri Oct 19 03:19:08 2007 -0400

[ATM, CHAR, TOUCHSCREEN] remove needless use of irq handler first arg

Like the vast majority of other drivers, these drivers do not need to reference their 'irq' function argument at all.

 drivers/atm/ambassador.c               |    2 +-
 drivers/char/stallion.c                |    2 +-
 drivers/input/touchscreen/ucb1400_ts.c |   11 ++++-------
 3 files changed, 6 insertions(+), 9 deletions(-)

aeb16d7836f97576218fae6f3959c415b0fd09f0

drivers/atm/ambassador.c +1 -1
index b34b382..c2b9464 100644
@@ -872,7 +872,7 @@ static irqreturn_t interrupt_handler(int irq, void *dev_id) {
   
     // for us or someone else sharing the same interrupt
     if (!interrupt) {
-      PRINTD (DBG_IRQ, "irq not for me: %d", irq);
+      PRINTD (DBG_IRQ, "irq not for me");
       return IRQ_NONE;
     }
     
drivers/char/stallion.c +1 -1
index 45758d5..bf5a134 100644
@@ -1629,7 +1629,7 @@ static irqreturn_t stl_intr(int irq, void *dev_id)
 {
 	struct stlbrd *brdp = dev_id;
 
-	pr_debug("stl_intr(brdp=%p,irq=%d)\n", brdp, irq);
+	pr_debug("stl_intr(brdp=%p,irq=%d)\n", brdp, brdp->irq);
 
 	return IRQ_RETVAL((* brdp->isr)(brdp));
 }
drivers/input/touchscreen/ucb1400_ts.c +4 -7
index 89373b0..68dac18 100644
@@ -360,13 +360,10 @@ static irqreturn_t ucb1400_hard_irq(int irqnr, void *devid)
 {
 	struct ucb1400 *ucb = devid;
 
-	if (irqnr == ucb->irq) {
-		disable_irq(ucb->irq);
-		ucb->irq_pending = 1;
-		wake_up(&ucb->ts_wait);
-		return IRQ_HANDLED;
-	}
-	return IRQ_NONE;
+	disable_irq(ucb->irq);
+	ucb->irq_pending = 1;
+	wake_up(&ucb->ts_wait);
+	return IRQ_HANDLED;
 }
 
 static int ucb1400_ts_open(struct input_dev *idev)