]> Pileus Git - ~andy/linux/commitdiff
staging: comedi: addi_apci_1032: call v_APCI1032_Interrupt() directly
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 5 Nov 2012 21:38:26 +0000 (14:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Nov 2012 08:30:56 +0000 (09:30 +0100)
Remove the boardinfo about the 'interrupt' function and just call
it directly.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_1032.c

index 159e70d1e84f34efa0a56d51745bb6c055ff45e2..7e606620ef6e179f906f97c86053d1e3de426397 100644 (file)
@@ -14,16 +14,12 @@ static const struct addi_board apci1032_boardtypes[] = {
                .i_PCIEeprom            = ADDIDATA_EEPROM,
                .pc_EepromChip          = ADDIDATA_93C76,
                .i_NbrDiChannel         = 32,
-               .interrupt              = v_APCI1032_Interrupt,
        },
 };
 
 static irqreturn_t v_ADDI_Interrupt(int irq, void *d)
 {
-       struct comedi_device *dev = d;
-       const struct addi_board *this_board = comedi_board(dev);
-
-       this_board->interrupt(irq, d);
+       v_APCI1032_Interrupt(irq, d);
        return IRQ_RETVAL(1);
 }