staging: comedi: pcl818: 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>
This commit is contained in:
parent
8cafadee50
commit
2e5fc06aa7
1 changed files with 3 additions and 2 deletions
|
@ -1657,8 +1657,9 @@ static int pcl818_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,
|
||||
"pcl818 (RTC)"))
|
||||
ret = __comedi_request_resource(dev, RTC_PORT(0),
|
||||
RTC_IO_EXTENT);
|
||||
if (ret)
|
||||
goto no_rtc;
|
||||
}
|
||||
devpriv->rtc_iobase = RTC_PORT(0);
|
||||
|
|
Loading…
Add table
Reference in a new issue