From b8f4c930e0ff5340e3fea6b1142ccf7100df6d76 Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Fri, 25 Jan 2013 17:33:17 -0700 Subject: [PATCH] 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 --- drivers/staging/comedi/drivers/ni_mio_cs.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.30.2