Commit 3de38f25 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: pcmuio: remove unused private data variables

These members of the private data are either not referenced or are set
but never used by the driver. Remove them.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e4eae7c0
...@@ -125,8 +125,6 @@ ...@@ -125,8 +125,6 @@
#define PCMUIO48_IOSIZE ASIC_IOSIZE #define PCMUIO48_IOSIZE ASIC_IOSIZE
#define PCMUIO96_IOSIZE (ASIC_IOSIZE * 2) #define PCMUIO96_IOSIZE (ASIC_IOSIZE * 2)
#define NUM_PAGED_REGS 3
struct pcmuio_board { struct pcmuio_board {
const char *name; const char *name;
const int num_asics; const int num_asics;
...@@ -180,11 +178,6 @@ struct pcmuio_subdev_private { ...@@ -180,11 +178,6 @@ struct pcmuio_subdev_private {
struct pcmuio_private { struct pcmuio_private {
struct { struct {
/* shadow of POLx registers */
unsigned char pol[NUM_PAGED_REGS];
/* shadow of ENABx registers */
unsigned char enab[NUM_PAGED_REGS];
int num;
unsigned long iobase; unsigned long iobase;
unsigned int irq; unsigned int irq;
spinlock_t spinlock; spinlock_t spinlock;
...@@ -701,7 +694,6 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -701,7 +694,6 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
dev->private = devpriv; dev->private = devpriv;
for (asic = 0; asic < MAX_ASICS; ++asic) { for (asic = 0; asic < MAX_ASICS; ++asic) {
devpriv->asics[asic].num = asic;
devpriv->asics[asic].iobase = dev->iobase + asic * ASIC_IOSIZE; devpriv->asics[asic].iobase = dev->iobase + asic * ASIC_IOSIZE;
spin_lock_init(&devpriv->asics[asic].spinlock); spin_lock_init(&devpriv->asics[asic].spinlock);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment