From: H Hartley Sweeten Date: Tue, 13 Nov 2012 20:42:54 +0000 (-0700) Subject: staging: comedi: addi_apci_1516: don't read the unused PCI bars X-Git-Tag: firefly_0821_release~3680^2~1519^2~412 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=308632e8490e97b98f6a7ba0aa15e10ba4224e68;p=firefly-linux-kernel-4.4.55.git staging: comedi: addi_apci_1516: don't read the unused PCI bars This driver does use devpriv->i_IobaseAmcc or devpriv->i_IobaseReserved. Don't bother reading these PCI bars. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi_apci_1516.c b/drivers/staging/comedi/drivers/addi_apci_1516.c index 941ed608cc6a..f4ccfc6f19f9 100644 --- a/drivers/staging/comedi/drivers/addi_apci_1516.c +++ b/drivers/staging/comedi/drivers/addi_apci_1516.c @@ -85,9 +85,7 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev, 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;