Commit 5b6137d8 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: ni_mio_common: don't pass config options to ni_E_init()

`ni_E_init()` doesn't use the second parameter pointing to a `struct
comedi_devconfig` passed from a comedi `attach` handler, so remove the
parameter.
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 21b74c27
...@@ -489,7 +489,7 @@ static int ni_atmio_attach(struct comedi_device *dev, ...@@ -489,7 +489,7 @@ static int ni_atmio_attach(struct comedi_device *dev,
/* generic E series stuff in ni_mio_common.c */ /* generic E series stuff in ni_mio_common.c */
ret = ni_E_init(dev, it); ret = ni_E_init(dev);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
...@@ -4404,7 +4404,7 @@ static int ni_alloc_private(struct comedi_device *dev) ...@@ -4404,7 +4404,7 @@ static int ni_alloc_private(struct comedi_device *dev)
return 0; return 0;
}; };
static int ni_E_init(struct comedi_device *dev, struct comedi_devconfig *it) static int ni_E_init(struct comedi_device *dev)
{ {
struct comedi_subdevice *s; struct comedi_subdevice *s;
unsigned j; unsigned j;
......
...@@ -382,7 +382,7 @@ static int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -382,7 +382,7 @@ static int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it)
devpriv->stc_writel = &win_out2; devpriv->stc_writel = &win_out2;
devpriv->stc_readl = &win_in2; devpriv->stc_readl = &win_in2;
ret = ni_E_init(dev, it); ret = ni_E_init(dev);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
...@@ -1659,7 +1659,7 @@ static int pcimio_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -1659,7 +1659,7 @@ static int pcimio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
} }
} }
ret = ni_E_init(dev, it); ret = ni_E_init(dev);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment