Skip to content

Commit

Permalink
staging: comedi: ni_daq_dio24: remove comedi private data
Browse files Browse the repository at this point in the history
The comedi private data, struct dio24_private, is not used in
the driver. Remove it and the kzalloc.

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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Feb 4, 2013
1 parent 4172246 commit 61f828e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions drivers/staging/comedi/drivers/ni_daq_dio24.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,25 +83,14 @@ static const struct dio24_board_struct dio24_boards[] = {
},
};

struct dio24_private {

int data; /* number of data points left to be taken */
};

static int dio24_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
const struct dio24_board_struct *thisboard = comedi_board(dev);
struct dio24_private *devpriv;
struct comedi_subdevice *s;
unsigned long iobase = 0;
struct pcmcia_device *link;
int ret;

devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
dev->private = devpriv;

/* get base address, irq etc. based on bustype */
switch (thisboard->bustype) {
case pcmcia_bustype:
Expand Down

0 comments on commit 61f828e

Please sign in to comment.