提交 5b6137d8 编写于 作者: I Ian Abbott 提交者: 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: NIan Abbott <abbotti@mev.co.uk>
Reviewed-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 21b74c27
......@@ -489,7 +489,7 @@ static int ni_atmio_attach(struct comedi_device *dev,
/* generic E series stuff in ni_mio_common.c */
ret = ni_E_init(dev, it);
ret = ni_E_init(dev);
if (ret < 0)
return ret;
......
......@@ -4404,7 +4404,7 @@ static int ni_alloc_private(struct comedi_device *dev)
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;
unsigned j;
......
......@@ -382,7 +382,7 @@ static int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it)
devpriv->stc_writel = &win_out2;
devpriv->stc_readl = &win_in2;
ret = ni_E_init(dev, it);
ret = ni_E_init(dev);
if (ret < 0)
return ret;
......
......@@ -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)
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册