]> Pileus Git - ~andy/linux/commitdiff
staging: comedi: addi_apci_1516: don't read the unused PCI bars
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 13 Nov 2012 20:42:54 +0000 (13:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 23:12:48 +0000 (15:12 -0800)
This driver does use devpriv->i_IobaseAmcc or devpriv->i_IobaseReserved.
Don't bother reading these 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>
drivers/staging/comedi/drivers/addi_apci_1516.c

index 941ed608cc6a7054a597c51e16ffb2286ed59da8..f4ccfc6f19f96cd9eed05a0579a3a5e190c9b687 100644 (file)
@@ -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;