diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-04-09 23:31:44 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-11 19:47:54 (GMT) |
commit | 8cafadee50dec318d2a9aca701eb43073bb600eb (patch) | |
tree | aabd842845a8a3072dc96f5391b8b3814652f124 /drivers | |
parent | 5950ae518f0bf9affbbb4b2178c27e516e4cacc5 (diff) | |
download | linux-fsl-qoriq-8cafadee50dec318d2a9aca701eb43073bb600eb.tar.xz |
staging: comedi: pcl816: use __comedi_request_region()
Use __comedi_request_region() to request the additional I/O region
used by this driver.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/pcl816.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/pcl816.c b/drivers/staging/comedi/drivers/pcl816.c index 6266b2b..2fd688a 100644 --- a/drivers/staging/comedi/drivers/pcl816.c +++ b/drivers/staging/comedi/drivers/pcl816.c @@ -1038,8 +1038,9 @@ static int pcl816_attach(struct comedi_device *dev, struct comedi_devconfig *it) devpriv->dma_rtc = 0; if (it->options[2] > 0) { /* we want to use DMA */ if (RTC_lock == 0) { - if (!request_region(RTC_PORT(0), RTC_IO_EXTENT, - "pcl816 (RTC)")) + ret = __comedi_request_region(dev, RTC_PORT(0), + RTC_IO_EXTENT); + if (ret) goto no_rtc; } devpriv->rtc_iobase = RTC_PORT(0); |