fix initialization of eeprom subdevice
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 1 Aug 2004 23:18:42 +0000 (23:18 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 1 Aug 2004 23:18:42 +0000 (23:18 +0000)
comedi/drivers/cb_pcidas64.c

index 212627224ab3e56d3d6924ef2b448b17e17ef1a0..cb798459a3f4ffb197501f5d3c0dd5b214f9b9ec 100644 (file)
@@ -1456,7 +1456,7 @@ static int setup_subdevices(comedi_device *dev)
 
        //serial EEPROM, if present
        s = dev->subdevices + 8;
-       if(priv(dev)->plx_control_bits & CTL_EECHK)
+       if(readl(priv(dev)->plx9080_iobase + PLX_CONTROL_REG) & CTL_EECHK)
        {
                s->type = COMEDI_SUBD_MEMORY;
                s->subdev_flags = SDF_READABLE | SDF_INTERNAL;