Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192527
b: refs/heads/master
c: eb8804f
h: refs/heads/master
i:
  192525: 933156a
  192523: 3b05ce1
  192519: 248115e
  192511: 9325e2b
v: v3
  • Loading branch information
Javier Martinez Canillas authored and Dominik Brodowski committed May 17, 2010
1 parent f062819 commit bd18d84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a371b37ccdb97ccf99b25645c7976f6448bb7274
refs/heads/master: eb8804f654a512a1a4e2f189d1bbaa41565e46b5
19 changes: 3 additions & 16 deletions trunk/drivers/staging/comedi/drivers/cb_das16_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,6 @@ static dev_info_t dev_info = "cb_das16_cs";

struct local_info_t {
struct pcmcia_device *link;
dev_node_t node;
int stop;
struct bus_operations *bus;
};
Expand Down Expand Up @@ -716,10 +715,8 @@ static void das16cs_pcmcia_detach(struct pcmcia_device *link)
{
dev_dbg(&link->dev, "das16cs_pcmcia_detach\n");

if (link->dev_node) {
((struct local_info_t *)link->priv)->stop = 1;
das16cs_pcmcia_release(link);
}
((struct local_info_t *)link->priv)->stop = 1;
das16cs_pcmcia_release(link);
/* This points to the parent struct local_info_t struct */
if (link->priv)
kfree(link->priv);
Expand Down Expand Up @@ -764,7 +761,6 @@ static int das16cs_pcmcia_config_loop(struct pcmcia_device *p_dev,

static void das16cs_pcmcia_config(struct pcmcia_device *link)
{
struct local_info_t *dev = link->priv;
int ret;

dev_dbg(&link->dev, "das16cs_pcmcia_config\n");
Expand All @@ -787,17 +783,8 @@ static void das16cs_pcmcia_config(struct pcmcia_device *link)
if (ret)
goto failed;

/*
At this point, the dev_node_t structure(s) need to be
initialized and arranged in a linked list at link->dev.
*/
sprintf(dev->node.dev_name, "cb_das16_cs");
dev->node.major = dev->node.minor = 0;
link->dev_node = &dev->node;

/* Finally, report what we've done */
printk(KERN_INFO "%s: index 0x%02x",
dev->node.dev_name, link->conf.ConfigIndex);
dev_info(&link->dev, "index 0x%02x", link->conf.ConfigIndex);
if (link->conf.Attributes & CONF_ENABLE_IRQ)
printk(", irq %u", link->irq);
if (link->io.NumPorts1)
Expand Down

0 comments on commit bd18d84

Please sign in to comment.