From: H Hartley Sweeten Date: Tue, 1 Oct 2013 00:49:36 +0000 (-0700) Subject: staging: comedi: ni_at_ao: remove ATAO_SIZE define X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6a6116c282ecf6918b39da89758c4bcd648443ad;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: ni_at_ao: remove ATAO_SIZE define This define is only used during the board attach to specify the I/O region length. 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_at_ao.c b/drivers/staging/comedi/drivers/ni_at_ao.c index 3545d294c4ae..d349b1f4dff1 100644 --- a/drivers/staging/comedi/drivers/ni_at_ao.c +++ b/drivers/staging/comedi/drivers/ni_at_ao.c @@ -42,8 +42,6 @@ Configuration options: /* board egisters */ /* registers with _2_ are accessed when GRP2WR is set in CFG1 */ -#define ATAO_SIZE 0x20 - #define ATAO_2_DMATCCLR 0x00 /* W 16 */ #define ATAO_DIN 0x00 /* R 16 */ #define ATAO_DOUT 0x00 /* W 16 */ @@ -327,7 +325,7 @@ static int atao_attach(struct comedi_device *dev, struct comedi_devconfig *it) ao_unipolar = it->options[3]; - ret = comedi_request_region(dev, it->options[0], ATAO_SIZE); + ret = comedi_request_region(dev, it->options[0], 0x20); if (ret) return ret;