]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: octeon: use passed interrupt number in the handler
authorAaro Koskinen <aaro.koskinen@iki.fi>
Wed, 31 Aug 2016 20:57:37 +0000 (23:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Sep 2016 12:46:53 +0000 (14:46 +0200)
Use passed interrupt number in the handler, so we can avoid using
the global variable.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-rx.c

index 5b26f2a76a401ffd7a069fc2fd9d2033d2bb8843..808c4155f0469236caa1622d7621fffe44c867b9 100644 (file)
@@ -47,16 +47,16 @@ static struct napi_struct cvm_oct_napi;
 
 /**
  * cvm_oct_do_interrupt - interrupt handler.
- * @cpl: Interrupt number. Unused
+ * @irq: Interrupt number.
  * @dev_id: Cookie to identify the device. Unused
  *
  * The interrupt occurs whenever the POW has packets in our group.
  *
  */
-static irqreturn_t cvm_oct_do_interrupt(int cpl, void *dev_id)
+static irqreturn_t cvm_oct_do_interrupt(int irq, void *dev_id)
 {
        /* Disable the IRQ and start napi_poll. */
-       disable_irq_nosync(OCTEON_IRQ_WORKQ0 + pow_receive_group);
+       disable_irq_nosync(irq);
        napi_schedule(&cvm_oct_napi);
 
        return IRQ_HANDLED;