Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354455
b: refs/heads/master
c: 573a964
h: refs/heads/master
i:
  354453: 4899500
  354451: 0baa5ae
  354447: 3709955
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Feb 6, 2013
1 parent ff492f4 commit ecbc294
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 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: 66dbc7b1b00499285793143b44b979e26141204d
refs/heads/master: 573a964882065f9b2cb71db8a225ba067b4b5b7a
25 changes: 3 additions & 22 deletions trunk/drivers/staging/comedi/drivers/ni_daq_dio24.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ the PCMCIA interface.

#include "8255.h"

static int dio24_pcmcia_config_loop(struct pcmcia_device *p_dev,
void *priv_data)
{
if (p_dev->config_index == 0)
return -EINVAL;

return pcmcia_request_io(p_dev);
}

static int dio24_auto_attach(struct comedi_device *dev,
unsigned long context)
{
Expand All @@ -63,15 +54,8 @@ static int dio24_auto_attach(struct comedi_device *dev,

dev->board_name = dev->driver->driver_name;

link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_AUDIO |
CONF_AUTO_SET_IO;

ret = pcmcia_loop_config(link, dio24_pcmcia_config_loop, NULL);
if (ret)
return ret;

ret = pcmcia_enable_device(link);
if (ret)
link->config_flags |= CONF_AUTO_SET_IO;
ret = comedi_pcmcia_enable(dev);
return ret;
dev->iobase = link->resource[0]->start;

Expand All @@ -90,12 +74,9 @@ static int dio24_auto_attach(struct comedi_device *dev,

static void dio24_detach(struct comedi_device *dev)
{
struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);

if (dev->subdevices)
subdev_8255_cleanup(dev, &dev->subdevices[0]);
if (dev->iobase)
pcmcia_disable_device(link);
comedi_pcmcia_disable(dev);
}

static struct comedi_driver driver_dio24 = {
Expand Down

0 comments on commit ecbc294

Please sign in to comment.