Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 551d7939 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: ni_atmio: remove NI_SIZE define



This define is only used in the comedi_request_region() to specify the
size of the region. Remove the define and just open code the value.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 050e2d3a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -105,8 +105,6 @@ are not supported.
 *  AT specific setup
 */

#define NI_SIZE 0x20

static const struct ni_board_struct ni_boards[] = {
	{.device_id = 44,
	 .isapnp_id = 0x0000,	/* XXX unknown */
@@ -344,7 +342,7 @@ static int ni_atmio_attach(struct comedi_device *dev,
		comedi_set_hw_dev(dev, &isapnp_dev->dev);
	}

	ret = comedi_request_region(dev, iobase, NI_SIZE);
	ret = comedi_request_region(dev, iobase, 0x20);
	if (ret)
		return ret;