Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61f828ec authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: ni_daq_dio24: remove comedi private data



The comedi private data, struct dio24_private, is not used in
the driver. Remove it and the kzalloc.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 41722460
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -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: