diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-11-29 18:17:30 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-29 18:05:29 -0800 |
commit | ff5eb17ef48738dcc3348d765134a915c9d5091d (patch) | |
tree | c0a3aafc50440130536467abbf35db7e1cef16ec | |
parent | f5f760e1d3bf641dacc64240a593267cab554a7a (diff) | |
download | op-kernel-dev-ff5eb17ef48738dcc3348d765134a915c9d5091d.zip op-kernel-dev-ff5eb17ef48738dcc3348d765134a915c9d5091d.tar.gz |
staging: comedi: addi_apci_2032: don't read the unused PCI bars
This driver only uses PCI bar 1 (dev->iobase), doon't bother reading
the unused PCI bars.
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>
-rw-r--r-- | drivers/staging/comedi/drivers/addi_apci_2032.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/addi_apci_2032.c b/drivers/staging/comedi/drivers/addi_apci_2032.c index c498a8c..57c5925 100644 --- a/drivers/staging/comedi/drivers/addi_apci_2032.c +++ b/drivers/staging/comedi/drivers/addi_apci_2032.c @@ -86,11 +86,7 @@ static int apci2032_auto_attach(struct comedi_device *dev, ret = comedi_pci_enable(pcidev, dev->board_name); if (ret) return ret; - dev->iobase = pci_resource_start(pcidev, 1); - devpriv->i_IobaseAmcc = pci_resource_start(pcidev, 0); - devpriv->i_IobaseAddon = pci_resource_start(pcidev, 2); - devpriv->i_IobaseReserved = pci_resource_start(pcidev, 3); /* Initialize parameters that can be overridden in EEPROM */ devpriv->s_EeParameters.i_NbrAiChannel = this_board->i_NbrAiChannel; |