summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-11-02 01:28:24 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-02 19:23:49 +0100
commitf538c37ded4b33765cc942b1e2e64f1504db4101 (patch)
tree0e3d222d7e4f867c2053575b1c06f11f9683aa13 /drivers
parentstaging: comedi: addi_apci_3120: clarify AI subdevice init (diff)
downloadlinux-f538c37ded4b33765cc942b1e2e64f1504db4101.tar.xz
linux-f538c37ded4b33765cc942b1e2e64f1504db4101.zip
staging: comedi: addi_apci_3120: remove i_ADDI_Reset()
This driver is now separate from the "common" code used with the addi-data drivers. There is no need to use i_ADDI_Reset() to call the correct "reset" function. Remove the i_ADDI_Reset() function and the 'reset' pointer to the real function from the boardinfo and just call the function directly where needed. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/addi_apci_3120.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/staging/comedi/drivers/addi_apci_3120.c b/drivers/staging/comedi/drivers/addi_apci_3120.c
index e4be0e66a6fc..dfe4ba173f88 100644
--- a/drivers/staging/comedi/drivers/addi_apci_3120.c
+++ b/drivers/staging/comedi/drivers/addi_apci_3120.c
@@ -33,7 +33,6 @@ static const struct addi_board apci3120_boardtypes[] = {
.ui_MinAcquisitiontimeNs = 10000,
.ui_MinDelaytimeNs = 100000,
.interrupt = v_APCI3120_Interrupt,
- .reset = i_APCI3120_Reset,
.ao_write = i_APCI3120_InsnWriteAnalogOutput,
}, {
.pc_DriverName = "apci3001",
@@ -54,7 +53,6 @@ static const struct addi_board apci3120_boardtypes[] = {
.ui_MinAcquisitiontimeNs = 10000,
.ui_MinDelaytimeNs = 100000,
.interrupt = v_APCI3120_Interrupt,
- .reset = i_APCI3120_Reset,
},
};
@@ -67,14 +65,6 @@ static irqreturn_t v_ADDI_Interrupt(int irq, void *d)
return IRQ_RETVAL(1);
}
-static int i_ADDI_Reset(struct comedi_device *dev)
-{
- const struct addi_board *this_board = comedi_board(dev);
-
- this_board->reset(dev);
- return 0;
-}
-
static const void *addi_find_boardinfo(struct comedi_device *dev,
struct pci_dev *pcidev)
{
@@ -257,7 +247,7 @@ static int apci3120_attach_pci(struct comedi_device *dev,
s = &dev->subdevices[6];
s->type = COMEDI_SUBD_UNUSED;
- i_ADDI_Reset(dev);
+ i_APCI3120_Reset(dev);
return 0;
}
@@ -269,7 +259,7 @@ static void apci3120_detach(struct comedi_device *dev)
if (devpriv) {
if (dev->iobase)
- i_ADDI_Reset(dev);
+ i_APCI3120_Reset(dev);
if (dev->irq)
free_irq(dev->irq, dev);
if ((this_board->pc_EepromChip == NULL) ||