Skip to content

Commit

Permalink
staging: comedi: ni_daq_700: use comedi_pcmcia_disable() for (*detach)
Browse files Browse the repository at this point in the history
The (*detach) function, daq700_detach() is now a simple wrapper around
comedi_pcmcia_disable(). Just use comedi_pcmcia_disable() directly for
the (*detach).

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Feb 4, 2013
1 parent 7dc9910 commit 5056d87
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/staging/comedi/drivers/ni_daq_700.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,11 @@ static int daq700_auto_attach(struct comedi_device *dev,
return 0;
}

static void daq700_detach(struct comedi_device *dev)
{
comedi_pcmcia_disable(dev);
}

static struct comedi_driver daq700_driver = {
.driver_name = "ni_daq_700",
.module = THIS_MODULE,
.auto_attach = daq700_auto_attach,
.detach = daq700_detach,
.detach = comedi_pcmcia_disable,
};

static int daq700_cs_attach(struct pcmcia_device *link)
Expand Down

0 comments on commit 5056d87

Please sign in to comment.