]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PARPORT] Kill useful 'irq' arg from parport_{generic_irq,ieee1284_interrupt}
authorJeff Garzik <jeff@garzik.org>
Fri, 19 Oct 2007 05:56:02 +0000 (01:56 -0400)
committerJeff Garzik <jeff@garzik.org>
Tue, 23 Oct 2007 23:53:15 +0000 (19:53 -0400)
parport_ieee1284_interrupt() was not using its first arg at all.
Delete.

parport_generic_irq()'s second arg makes its first arg completely
redundant.  Delete, and use port->irq in the one place where we actually
need it.

Also, s/__inline__/inline/ to make the code look nicer.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/parport/ieee1284.c
drivers/parport/parport_mfc3.c
drivers/parport/share.c
drivers/usb/misc/uss720.c
include/linux/parport.h

index 5accaa7bde313f9d62a877a27681d404cd5ea4c8..54a6ef72906ed741e2a0ba4ddbeb343de5418480 100644 (file)
@@ -571,7 +571,7 @@ static int parport_ieee1284_ack_data_avail (struct parport *port)
 #endif /* IEEE1284 support */
 
 /* Handle an interrupt. */
-void parport_ieee1284_interrupt (int which, void *handle)
+void parport_ieee1284_interrupt (void *handle)
 {
        struct parport *port = handle;
        parport_ieee1284_wakeup (port);
index 77726fc4976641c13ab9a05cc5e3861699d4afb2..6dec9ba5ed28fe07aeaf667a00d125c1e27d3a7c 100644 (file)
@@ -219,7 +219,7 @@ static irqreturn_t mfc3_interrupt(int irq, void *dev_id)
                if (this_port[i] != NULL)
                        if (pia(this_port[i])->crb & 128) { /* Board caused interrupt */
                                dummy = pia(this_port[i])->pprb; /* clear irq bit */
-                               parport_generic_irq(irq, this_port[i]);
+                               parport_generic_irq(this_port[i]);
                        }
        return IRQ_HANDLED;
 }
index 414c52a5883a5dbfa3ae62f13eb9a233378433d2..d0b353cf14acf5f5455469f3de0adce66150548b 100644 (file)
@@ -999,7 +999,7 @@ irqreturn_t parport_irq_handler(int irq, void *dev_id)
 {
        struct parport *port = dev_id;
 
-       parport_generic_irq(irq, port);
+       parport_generic_irq(port);
 
        return IRQ_HANDLED;
 }
index 2734fe2b9c43b0443f7ef70b62d886ebe3c785bf..f1255b0a182d24f4742180c4f47caf5a37b4e259 100644 (file)
@@ -128,7 +128,7 @@ static void async_complete(struct urb *urb)
 #endif
                /* if nAck interrupts are enabled and we have an interrupt, call the interrupt procedure */
                if (rq->reg[2] & rq->reg[1] & 0x10 && pp)
-                       parport_generic_irq(0, pp);
+                       parport_generic_irq(pp);
        }
        complete(&rq->compl);
        kref_put(&rq->ref_count, destroy_async);
@@ -337,7 +337,7 @@ static int uss720_irq(int usbstatus, void *buffer, int len, void *dev_id)
        memcpy(priv->reg, buffer, 4);
        /* if nAck interrupts are enabled and we have an interrupt, call the interrupt procedure */
        if (priv->reg[2] & priv->reg[1] & 0x10)
-               parport_generic_irq(0, pp);
+               parport_generic_irq(pp);
        return 1;
 }
 #endif
index 66026eab10c766a76598cd3005ce30fa084f6b5d..557c37de1f38f080b4df06e068ced036fb4b9891 100644 (file)
@@ -465,7 +465,7 @@ static __inline__ int parport_yield_blocking(struct pardevice *dev)
 #define PARPORT_FLAG_EXCL              (1<<1)  /* EXCL driver registered. */
 
 /* IEEE1284 functions */
-extern void parport_ieee1284_interrupt (int, void *);
+extern void parport_ieee1284_interrupt (void *);
 extern int parport_negotiate (struct parport *, int mode);
 extern ssize_t parport_write (struct parport *, const void *buf, size_t len);
 extern ssize_t parport_read (struct parport *, void *buf, size_t len);
@@ -518,12 +518,12 @@ extern void parport_daisy_deselect_all (struct parport *port);
 extern int parport_daisy_select (struct parport *port, int daisy, int mode);
 
 /* Lowlevel drivers _can_ call this support function to handle irqs.  */
-static inline void parport_generic_irq(int irq, struct parport *port)
+static inline void parport_generic_irq(struct parport *port)
 {
-       parport_ieee1284_interrupt (irq, port);
+       parport_ieee1284_interrupt (port);
        read_lock(&port->cad_lock);
        if (port->cad && port->cad->irq_func)
-               port->cad->irq_func(irq, port->cad->private);
+               port->cad->irq_func(port->irq, port->cad->private);
        read_unlock(&port->cad_lock);
 }