diff options
| -rw-r--r-- | drivers/staging/comedi/drivers/quatech_daqp_cs.c | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/drivers/staging/comedi/drivers/quatech_daqp_cs.c b/drivers/staging/comedi/drivers/quatech_daqp_cs.c index 7aa17f92968c..1786db2f3378 100644 --- a/drivers/staging/comedi/drivers/quatech_daqp_cs.c +++ b/drivers/staging/comedi/drivers/quatech_daqp_cs.c | |||
| @@ -60,7 +60,6 @@ Devices: [Quatech] DAQP-208 (daqp), DAQP-308 | |||
| 60 | 60 | ||
| 61 | struct local_info_t { | 61 | struct local_info_t { |
| 62 | struct pcmcia_device *link; | 62 | struct pcmcia_device *link; |
| 63 | dev_node_t node; | ||
| 64 | int stop; | 63 | int stop; |
| 65 | int table_index; | 64 | int table_index; |
| 66 | char board_name[32]; | 65 | char board_name[32]; |
| @@ -1070,10 +1069,8 @@ static void daqp_cs_detach(struct pcmcia_device *link) | |||
| 1070 | 1069 | ||
| 1071 | dev_dbg(&link->dev, "daqp_cs_detach\n"); | 1070 | dev_dbg(&link->dev, "daqp_cs_detach\n"); |
| 1072 | 1071 | ||
| 1073 | if (link->dev_node) { | 1072 | dev->stop = 1; |
| 1074 | dev->stop = 1; | 1073 | daqp_cs_release(link); |
| 1075 | daqp_cs_release(link); | ||
| 1076 | } | ||
| 1077 | 1074 | ||
| 1078 | /* Unlink device structure, and free it */ | 1075 | /* Unlink device structure, and free it */ |
| 1079 | dev_table[dev->table_index] = NULL; | 1076 | dev_table[dev->table_index] = NULL; |
| @@ -1128,7 +1125,6 @@ static int daqp_pcmcia_config_loop(struct pcmcia_device *p_dev, | |||
| 1128 | 1125 | ||
| 1129 | static void daqp_cs_config(struct pcmcia_device *link) | 1126 | static void daqp_cs_config(struct pcmcia_device *link) |
| 1130 | { | 1127 | { |
| 1131 | struct local_info_t *dev = link->priv; | ||
| 1132 | int ret; | 1128 | int ret; |
| 1133 | 1129 | ||
| 1134 | dev_dbg(&link->dev, "daqp_cs_config\n"); | 1130 | dev_dbg(&link->dev, "daqp_cs_config\n"); |
| @@ -1152,21 +1148,8 @@ static void daqp_cs_config(struct pcmcia_device *link) | |||
| 1152 | if (ret) | 1148 | if (ret) |
| 1153 | goto failed; | 1149 | goto failed; |
| 1154 | 1150 | ||
| 1155 | /* | ||
| 1156 | At this point, the dev_node_t structure(s) need to be | ||
| 1157 | initialized and arranged in a linked list at link->dev. | ||
| 1158 | */ | ||
| 1159 | /* Comedi's PCMCIA script uses this device name (extracted | ||
| 1160 | * from /var/lib/pcmcia/stab) to pass to comedi_config | ||
| 1161 | */ | ||
| 1162 | /* sprintf(dev->node.dev_name, "daqp%d", dev->table_index); */ | ||
| 1163 | sprintf(dev->node.dev_name, "quatech_daqp_cs"); | ||
| 1164 | dev->node.major = dev->node.minor = 0; | ||
| 1165 | link->dev_node = &dev->node; | ||
| 1166 | |||
| 1167 | /* Finally, report what we've done */ | 1151 | /* Finally, report what we've done */ |
| 1168 | printk(KERN_INFO "%s: index 0x%02x", | 1152 | dev_info(&link->dev, "index 0x%02x", link->conf.ConfigIndex); |
| 1169 | dev->node.dev_name, link->conf.ConfigIndex); | ||
| 1170 | if (link->conf.Attributes & CONF_ENABLE_IRQ) | 1153 | if (link->conf.Attributes & CONF_ENABLE_IRQ) |
| 1171 | printk(", irq %u", link->irq); | 1154 | printk(", irq %u", link->irq); |
| 1172 | if (link->io.NumPorts1) | 1155 | if (link->io.NumPorts1) |
