For aesthetics, rename this member to simply 'amcc'.

Change the type to match the type returned by pci_resource_start().

Signed-off-by: H Hartley Sweeten <hswee...@visionengravers.com>
Cc: Ian Abbott <abbo...@mev.co.uk>
Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org>
---
 drivers/staging/comedi/drivers/addi_apci_1564.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/comedi/drivers/addi_apci_1564.c 
b/drivers/staging/comedi/drivers/addi_apci_1564.c
index 87dec7e..47a1c14 100644
--- a/drivers/staging/comedi/drivers/addi_apci_1564.c
+++ b/drivers/staging/comedi/drivers/addi_apci_1564.c
@@ -32,8 +32,8 @@
 #include "addi_watchdog.h"
 
 struct apci1564_private {
+       unsigned long amcc;
        unsigned long counters;
-       unsigned int amcc_iobase;       /* base of AMCC I/O registers */
        unsigned int mode1;             /* riding-edge/high level channels */
        unsigned int mode2;             /* falling-edge/low level channels */
        unsigned int ctrl;              /* interrupt mode OR (edge) . AND 
(level) */
@@ -83,7 +83,7 @@ static irqreturn_t apci1564_interrupt(int irq, void *d)
        unsigned int chan;
 
        /* check interrupt is from this device */
-       if ((inl(devpriv->amcc_iobase + AMCC_OP_REG_INTCSR) &
+       if ((inl(devpriv->amcc + AMCC_OP_REG_INTCSR) &
             INTCSR_INTR_ASSERTED) == 0)
                return IRQ_NONE;
 
@@ -371,8 +371,8 @@ static int apci1564_auto_attach(struct comedi_device *dev,
        if (ret)
                return ret;
 
+       devpriv->amcc = pci_resource_start(pcidev, 0);
        dev->iobase = pci_resource_start(pcidev, 1);
-       devpriv->amcc_iobase = pci_resource_start(pcidev, 0);
        devpriv->counters = pci_resource_start(pcidev, 2);
 
        apci1564_reset(dev);
-- 
2.0.3

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to