staging: comedi: mite: remove mite_struct member 'mite_phys_addr'
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 20 Apr 2016 17:36:33 +0000 (10:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 05:18:51 +0000 (22:18 -0700)
This member of mite_struct is set but never used. Just remove it.

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>
drivers/staging/comedi/drivers/mite.c
drivers/staging/comedi/drivers/mite.h

index 61ac527f884ff70ed92f31df69200f845c0d9e08..a795842f7f2a773b855c37ecbd3adb3f9d73fbc3 100644 (file)
@@ -106,7 +106,6 @@ int mite_setup2(struct comedi_device *dev,
                        "Failed to remap mite io memory address\n");
                return -ENOMEM;
        }
-       mite->mite_phys_addr = pci_resource_start(mite->pcidev, 0);
 
        dev->mmio = pci_ioremap_bar(mite->pcidev, 1);
        if (!dev->mmio) {
index 583c60fa446043221e16e37f1536b04a23b5c3c6..95d3c1369913790a8a7a48202c3fd716ca156d86 100644 (file)
@@ -54,7 +54,6 @@ struct mite_channel {
 
 struct mite_struct {
        struct pci_dev *pcidev;
-       resource_size_t mite_phys_addr;
        void __iomem *mite_io_addr;
        resource_size_t daq_phys_addr;
        struct mite_channel channels[MAX_MITE_DMA_CHANNELS];