From: Frank Mori Hess Date: Sun, 1 Aug 2004 23:18:42 +0000 (+0000) Subject: fix initialization of eeprom subdevice X-Git-Tag: r0_7_69~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=acce6f8ea5b5f56ba12b4265bf5931909365e7c9;p=comedi.git fix initialization of eeprom subdevice --- diff --git a/comedi/drivers/cb_pcidas64.c b/comedi/drivers/cb_pcidas64.c index 21262722..cb798459 100644 --- a/comedi/drivers/cb_pcidas64.c +++ b/comedi/drivers/cb_pcidas64.c @@ -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;