diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-04-30 16:31:23 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-05-17 09:44:55 -0400 |
commit | 99bd8f22220efc214130488c3d65d6acc34ea893 (patch) | |
tree | ff9591321d698451a6f9ef5e077721487f5772fb | |
parent | 78950591e42a9c5069308f24e4cff73ae4d37472 (diff) |
drivers/staging/comedi: dev_node removal (ni_labpc_cs)
Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r-- | drivers/staging/comedi/drivers/ni_labpc_cs.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/drivers/staging/comedi/drivers/ni_labpc_cs.c b/drivers/staging/comedi/drivers/ni_labpc_cs.c index 907b2ae467b2..fd8d3e9520a0 100644 --- a/drivers/staging/comedi/drivers/ni_labpc_cs.c +++ b/drivers/staging/comedi/drivers/ni_labpc_cs.c | |||
@@ -199,7 +199,6 @@ static const dev_info_t dev_info = "daqcard-1200"; | |||
199 | 199 | ||
200 | struct local_info_t { | 200 | struct local_info_t { |
201 | struct pcmcia_device *link; | 201 | struct pcmcia_device *link; |
202 | dev_node_t node; | ||
203 | int stop; | 202 | int stop; |
204 | struct bus_operations *bus; | 203 | struct bus_operations *bus; |
205 | }; | 204 | }; |
@@ -265,10 +264,8 @@ static void labpc_cs_detach(struct pcmcia_device *link) | |||
265 | the release() function is called, that will trigger a proper | 264 | the release() function is called, that will trigger a proper |
266 | detach(). | 265 | detach(). |
267 | */ | 266 | */ |
268 | if (link->dev_node) { | 267 | ((struct local_info_t *)link->priv)->stop = 1; |
269 | ((struct local_info_t *)link->priv)->stop = 1; | 268 | labpc_release(link); |
270 | labpc_release(link); | ||
271 | } | ||
272 | 269 | ||
273 | /* This points to the parent local_info_t struct (may be null) */ | 270 | /* This points to the parent local_info_t struct (may be null) */ |
274 | kfree(link->priv); | 271 | kfree(link->priv); |
@@ -350,7 +347,6 @@ static int labpc_pcmcia_config_loop(struct pcmcia_device *p_dev, | |||
350 | 347 | ||
351 | static void labpc_config(struct pcmcia_device *link) | 348 | static void labpc_config(struct pcmcia_device *link) |
352 | { | 349 | { |
353 | struct local_info_t *dev = link->priv; | ||
354 | int ret; | 350 | int ret; |
355 | win_req_t req; | 351 | win_req_t req; |
356 | 352 | ||
@@ -374,17 +370,8 @@ static void labpc_config(struct pcmcia_device *link) | |||
374 | if (ret) | 370 | if (ret) |
375 | goto failed; | 371 | goto failed; |
376 | 372 | ||
377 | /* | ||
378 | At this point, the dev_node_t structure(s) need to be | ||
379 | initialized and arranged in a linked list at link->dev. | ||
380 | */ | ||
381 | sprintf(dev->node.dev_name, "daqcard-1200"); | ||
382 | dev->node.major = dev->node.minor = 0; | ||
383 | link->dev_node = &dev->node; | ||
384 | |||
385 | /* Finally, report what we've done */ | 373 | /* Finally, report what we've done */ |
386 | printk(KERN_INFO "%s: index 0x%02x", | 374 | dev_info(&link->dev, "index 0x%02x", link->conf.ConfigIndex); |
387 | dev->node.dev_name, link->conf.ConfigIndex); | ||
388 | if (link->conf.Attributes & CONF_ENABLE_IRQ) | 375 | if (link->conf.Attributes & CONF_ENABLE_IRQ) |
389 | printk(", irq %d", link->irq); | 376 | printk(", irq %d", link->irq); |
390 | if (link->io.NumPorts1) | 377 | if (link->io.NumPorts1) |