diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-06-22 19:18:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-22 23:55:05 -0400 |
commit | c7949bbbfcf3e6b76384b191cd472ccc31742002 (patch) | |
tree | f04c426bfa6efa6cbccb0d756df544b05a639612 /drivers | |
parent | 1ac53c027bb6be5a82b080a1320bfd6f7fba641b (diff) |
staging: comedi: ni_daq_700: Remove the unused private data struct
The private data struct in this driver is not used for anything.
Remove the struct definition and the alloc_private() call.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/ni_daq_700.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/staging/comedi/drivers/ni_daq_700.c b/drivers/staging/comedi/drivers/ni_daq_700.c index b851e2e7db42..7ad54652b41f 100644 --- a/drivers/staging/comedi/drivers/ni_daq_700.c +++ b/drivers/staging/comedi/drivers/ni_daq_700.c | |||
@@ -90,13 +90,6 @@ static const struct dio700_board dio700_boards[] = { | |||
90 | */ | 90 | */ |
91 | #define thisboard ((const struct dio700_board *)dev->board_ptr) | 91 | #define thisboard ((const struct dio700_board *)dev->board_ptr) |
92 | 92 | ||
93 | struct dio700_private { | ||
94 | |||
95 | int data; /* number of data points left to be taken */ | ||
96 | }; | ||
97 | |||
98 | #define devpriv ((struct dio700_private *)dev->private) | ||
99 | |||
100 | #define _700_SIZE 8 | 93 | #define _700_SIZE 8 |
101 | 94 | ||
102 | #define _700_DATA 0 | 95 | #define _700_DATA 0 |
@@ -227,10 +220,6 @@ static int dio700_attach(struct comedi_device *dev, struct comedi_devconfig *it) | |||
227 | struct pcmcia_device *link; | 220 | struct pcmcia_device *link; |
228 | int ret; | 221 | int ret; |
229 | 222 | ||
230 | /* allocate and initialize dev->private */ | ||
231 | if (alloc_private(dev, sizeof(struct dio700_private)) < 0) | ||
232 | return -ENOMEM; | ||
233 | |||
234 | /* get base address, irq etc. based on bustype */ | 223 | /* get base address, irq etc. based on bustype */ |
235 | switch (thisboard->bustype) { | 224 | switch (thisboard->bustype) { |
236 | case pcmcia_bustype: | 225 | case pcmcia_bustype: |