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

staging: comedi: acl7225b: use comedi_request_region()

Use comedi_request_region() to request the I/O region used by this
driver.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 8fdbc75b
......@@ -77,13 +77,11 @@ static int acl7225b_attach(struct comedi_device *dev,
{
const struct acl7225b_boardinfo *board = comedi_board(dev);
struct comedi_subdevice *s;
int iobase;
int ret;
iobase = it->options[0];
if (!request_region(iobase, board->io_range, dev->board_name))
return -EIO;
dev->iobase = iobase;
ret = comedi_request_region(dev, it->options[0], board->io_range);
if (ret)
return ret;
ret = comedi_alloc_subdevices(dev, 3);
if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册