diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-07-18 22:05:32 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-19 19:51:40 -0400 |
commit | 3808dd926f2d6773939a078e4798a4b3c47ecc84 (patch) | |
tree | 382f14270fb55b9494c28e194a3f3a099f5d33ac | |
parent | 843c042d15dbecaece3070f08d88d9b7ad9d2284 (diff) |
staging: comedi: aio_iiro_16: remove the private data
The private data is not used by this driver. Remove the struct,
devpriv macro, and the allocation.
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>
-rw-r--r-- | drivers/staging/comedi/drivers/aio_iiro_16.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/staging/comedi/drivers/aio_iiro_16.c b/drivers/staging/comedi/drivers/aio_iiro_16.c index 16f28f65d292..ba1e3bbf2df8 100644 --- a/drivers/staging/comedi/drivers/aio_iiro_16.c +++ b/drivers/staging/comedi/drivers/aio_iiro_16.c | |||
@@ -57,14 +57,6 @@ static const struct aio_iiro_16_board aio_iiro_16_boards[] = { | |||
57 | .do_ = 16}, | 57 | .do_ = 16}, |
58 | }; | 58 | }; |
59 | 59 | ||
60 | struct aio_iiro_16_private { | ||
61 | int data; | ||
62 | struct pci_dev *pci_dev; | ||
63 | unsigned int ao_readback[2]; | ||
64 | }; | ||
65 | |||
66 | #define devpriv ((struct aio_iiro_16_private *) dev->private) | ||
67 | |||
68 | static int aio_iiro_16_dio_insn_bits_write(struct comedi_device *dev, | 60 | static int aio_iiro_16_dio_insn_bits_write(struct comedi_device *dev, |
69 | struct comedi_subdevice *s, | 61 | struct comedi_subdevice *s, |
70 | struct comedi_insn *insn, | 62 | struct comedi_insn *insn, |
@@ -116,9 +108,6 @@ static int aio_iiro_16_attach(struct comedi_device *dev, | |||
116 | 108 | ||
117 | dev->iobase = iobase; | 109 | dev->iobase = iobase; |
118 | 110 | ||
119 | if (alloc_private(dev, sizeof(struct aio_iiro_16_private)) < 0) | ||
120 | return -ENOMEM; | ||
121 | |||
122 | ret = comedi_alloc_subdevices(dev, 2); | 111 | ret = comedi_alloc_subdevices(dev, 2); |
123 | if (ret) | 112 | if (ret) |
124 | return ret; | 113 | return ret; |