aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/drivers/addi_apci_1500.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2014-12-03 11:25:36 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-09 16:54:34 -0800
commitc80a255e4a664be6a295280cd17be475c5105ad9 (patch)
treec456683bada9d0c7c51807efc20cc186bb6bedcd /drivers/staging/comedi/drivers/addi_apci_1500.c
parentstaging: comedi: addi_apci_1500: tidy up PCI Bar 1 register map (diff)
downloadlinux-dev-c80a255e4a664be6a295280cd17be475c5105ad9.tar.xz
linux-dev-c80a255e4a664be6a295280cd17be475c5105ad9.zip
staging: comedi: addi_apci_1500: remove private data 'iobase'
This member of the private data is the same as the comedi_device 'iobase'. Remove the private data member and use that instead. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/addi_apci_1500.c')
-rw-r--r--drivers/staging/comedi/drivers/addi_apci_1500.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/addi_apci_1500.c b/drivers/staging/comedi/drivers/addi_apci_1500.c
index 52df4959848a..d8a6170b2d76 100644
--- a/drivers/staging/comedi/drivers/addi_apci_1500.c
+++ b/drivers/staging/comedi/drivers/addi_apci_1500.c
@@ -8,7 +8,7 @@
#include "amcc_s5933.h"
/*
- * PCI Bar 1 Register map (devpriv->iobase)
+ * PCI Bar 1 Register map (dev->iobase)
*/
#define APCI1500_Z8536_PORTC_REG 0x00
#define APCI1500_Z8536_PORTB_REG 0x01
@@ -16,7 +16,6 @@
#define APCI1500_Z8536_CTRL_REG 0x03
struct apci1500_private {
- int iobase;
int i_IobaseAmcc;
int i_IobaseAddon;
int i_IobaseReserved;
@@ -43,7 +42,6 @@ static int apci1500_auto_attach(struct comedi_device *dev,
return ret;
dev->iobase = pci_resource_start(pcidev, 1);
- devpriv->iobase = dev->iobase;
devpriv->i_IobaseAmcc = pci_resource_start(pcidev, 0);
devpriv->i_IobaseAddon = pci_resource_start(pcidev, 2);
devpriv->i_IobaseReserved = pci_resource_start(pcidev, 3);