staging: comedi: pcl816: use __comedi_request_region()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Apr 2013 23:31:44 +0000 (16:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2013 19:47:54 +0000 (12:47 -0700)
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>
drivers/staging/comedi/drivers/pcl816.c

index 6266b2b025971725b8c5e359a1d9a5e45946e104..2fd688a5c63e65dbc743515623856b8899389a57 100644 (file)
@@ -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);
This page took 0.029067 seconds and 5 git commands to generate.