comedi: comedi_8254: Replace comedi_8254_init() and comedi_8254_mm_init()
[linux-2.6-microblaze.git] / drivers / comedi / drivers / pcl711.c
index 05172c5..0cf3917 100644 (file)
@@ -429,10 +429,10 @@ static int pcl711_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                        dev->irq = it->options[1];
        }
 
-       dev->pacer = comedi_8254_init(dev->iobase + PCL711_TIMER_BASE,
-                                     I8254_OSC_BASE_2MHZ, I8254_IO8, 0);
-       if (!dev->pacer)
-               return -ENOMEM;
+       dev->pacer = comedi_8254_io_alloc(dev->iobase + PCL711_TIMER_BASE,
+                                         I8254_OSC_BASE_2MHZ, I8254_IO8, 0);
+       if (IS_ERR(dev->pacer))
+               return PTR_ERR(dev->pacer);
 
        ret = comedi_alloc_subdevices(dev, 4);
        if (ret)