]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: ni_atmio: remove NI_SIZE define
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 20 Jun 2014 18:10:25 +0000 (11:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Jun 2014 21:17:58 +0000 (14:17 -0700)
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: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_atmio.c

index 3a53c285c1519dcb1ba72a2bbd54703eae28f472..f3122eaa2ab6c582d11ce5c7c216e309be6f6583 100644 (file)
@@ -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;