From: H Hartley Sweeten Date: Fri, 20 Jun 2014 18:10:25 +0000 (-0700) Subject: staging: comedi: ni_atmio: remove NI_SIZE define X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=551d793943c39bc8e9d548ac454cd0df32688211;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_atmio.c b/drivers/staging/comedi/drivers/ni_atmio.c index 3a53c285c151..f3122eaa2ab6 100644 --- a/drivers/staging/comedi/drivers/ni_atmio.c +++ b/drivers/staging/comedi/drivers/ni_atmio.c @@ -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;