提交 fc4e0217 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

staging: comedi: das16: remove unnecessary das16_ai_disable()

The das16_ai_disable() function disables interrupts and the pacer clock. This
function is called by the subdevice (*cancel) operation.

The comedi core will not call a subdevice (*insn_read) operation while an
async command is running due to the s->busy check in parse_insn(). Since all
async commands are terminated by a (*cancel), the das16_ai_disable() is not
necessary in das16_ai_insn_read(). Remove it.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: NIan Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 7157fda4
...@@ -831,8 +831,6 @@ static int das16_ai_insn_read(struct comedi_device *dev, ...@@ -831,8 +831,6 @@ static int das16_ai_insn_read(struct comedi_device *dev,
int ret; int ret;
int i; int i;
das16_ai_disable(dev);
/* set multiplexer */ /* set multiplexer */
outb(chan | (chan << 4), dev->iobase + DAS16_MUX_REG); outb(chan | (chan << 4), dev->iobase + DAS16_MUX_REG);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册