From: H Hartley Sweeten Date: Sat, 26 Jan 2013 00:33:17 +0000 (-0700) Subject: staging: comedi: ni_mio_cs: remove setting dev->driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b8f4c930e0ff5340e3fea6b1142ccf7100df6d76;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git staging: comedi: ni_mio_cs: remove setting dev->driver The comedi core sets the dev->driver pointer before calling the comedi_driver attach function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_mio_cs.c b/drivers/staging/comedi/drivers/ni_mio_cs.c index 47ce237fb278..c4ab3b64876a 100644 --- a/drivers/staging/comedi/drivers/ni_mio_cs.c +++ b/drivers/staging/comedi/drivers/ni_mio_cs.c @@ -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;