staging: comedi: ni_mio_cs: remove setting dev->driver
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 26 Jan 2013 00:33:17 +0000 (17:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 04:08:22 +0000 (23:08 -0500)
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>
drivers/staging/comedi/drivers/ni_mio_cs.c

index 47ce237fb2781d8b4ecdcff6ba67838e98e10453..c4ab3b64876a81addbda187768a9a7550ab8b899 100644 (file)
@@ -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;