Use the dev->read_subdev that was setup in the device attach instead
of accessing the dev->subdevices array directly.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 {
        struct comedi_device *dev = d;
        struct pcl816_private *devpriv = dev->private;
-       struct comedi_subdevice *s = &dev->subdevices[0];
+       struct comedi_subdevice *s = dev->read_subdev;
        unsigned char low, hi;
        int timeout = 50;       /* wait max 50us */
 
 {
        struct comedi_device *dev = d;
        struct pcl816_private *devpriv = dev->private;
-       struct comedi_subdevice *s = &dev->subdevices[0];
+       struct comedi_subdevice *s = dev->read_subdev;
        int len, bufptr, this_dma_buf;
        unsigned long dma_flags;
        unsigned short *ptr;