From: H Hartley Sweeten Date: Fri, 20 Jun 2014 20:12:42 +0000 (-0700) Subject: staging: comedi: dt282x: remove DT2821_SIZE define X-Git-Tag: v3.17-rc1~123^2~1543 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c53a62f64a072ea1ba31aa657e5962cf2a8f360e;p=~emulex%2Finfiniband.git staging: comedi: dt282x: remove DT2821_SIZE define This define is only used in the comedi_request_region() call to specify the size of the I/O region. Remove it 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/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c index cb12cca0f28..3276c073857 100644 --- a/drivers/staging/comedi/drivers/dt282x.c +++ b/drivers/staging/comedi/drivers/dt282x.c @@ -63,8 +63,6 @@ Notes: #include "comedi_fc.h" -#define DT2821_SIZE 0x10 - /* * Registers in the DT282x */ @@ -1197,7 +1195,7 @@ static int dt282x_attach(struct comedi_device *dev, struct comedi_devconfig *it) int ret; int i; - ret = comedi_request_region(dev, it->options[0], DT2821_SIZE); + ret = comedi_request_region(dev, it->options[0], 0x10); if (ret) return ret;