Skip to content

Commit

Permalink
staging: comedi: ni_mio_cs: remove setting dev->driver
Browse files Browse the repository at this point in the history
The comedi core sets the dev->driver pointer before calling the
comedi_driver attach function.

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 Jan 30, 2013
1 parent a7538b8 commit b8f4c93
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/staging/comedi/drivers/ni_mio_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ static int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it)
if (!link)
return -EIO;

dev->driver = &driver_ni_mio_cs;
dev->iobase = link->resource[0]->start;

irq = link->irq;
Expand Down

0 comments on commit b8f4c93

Please sign in to comment.