Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354317
b: refs/heads/master
c: de46fb7
h: refs/heads/master
i:
  354315: 4ac273d
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Feb 4, 2013
1 parent 1f8d78a commit e9e118b
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 7b725aaedd687361e3fdd8e61d3af24482557e3c
refs/heads/master: de46fb7776da0565fa71cb407c7eb45ce87676b9
18 changes: 2 additions & 16 deletions trunk/drivers/staging/comedi/drivers/ni_daq_dio24.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,6 @@ static void dio24_detach(struct comedi_device *dev)
};

static void dio24_config(struct pcmcia_device *link);
static void dio24_release(struct pcmcia_device *link);
static int dio24_cs_suspend(struct pcmcia_device *p_dev);
static int dio24_cs_resume(struct pcmcia_device *p_dev);

static int dio24_cs_attach(struct pcmcia_device *);
static void dio24_cs_detach(struct pcmcia_device *);

struct local_info_t {
struct pcmcia_device *link;
Expand Down Expand Up @@ -223,7 +217,7 @@ static int dio24_cs_attach(struct pcmcia_device *link)
static void dio24_cs_detach(struct pcmcia_device *link)
{
((struct local_info_t *)link->priv)->stop = 1;
dio24_release(link);
pcmcia_disable_device(link);

/* This points to the parent local_info_t struct */
kfree(link->priv);
Expand Down Expand Up @@ -266,16 +260,8 @@ static void dio24_config(struct pcmcia_device *link)

failed:
dev_info(&link->dev, "Fallo");
dio24_release(link);

} /* dio24_config */

static void dio24_release(struct pcmcia_device *link)
{
dev_dbg(&link->dev, "dio24_release\n");

pcmcia_disable_device(link);
} /* dio24_release */
}

static int dio24_cs_suspend(struct pcmcia_device *link)
{
Expand Down

0 comments on commit e9e118b

Please sign in to comment.