Skip to content

Commit

Permalink
staging: comedi: ni_mio_cs: remove cs_release()
Browse files Browse the repository at this point in the history
This function simply calls pcmcia_disable_device(). Remove it and
just call pcmcia_disable_device() where needed.

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 Jan 30, 2013
1 parent bea5b90 commit 1b69a75
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/staging/comedi/drivers/ni_mio_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,14 +378,9 @@ static int cs_attach(struct pcmcia_device *link)
return 0;
}

static void cs_release(struct pcmcia_device *link)
{
pcmcia_disable_device(link);
}

static void cs_detach(struct pcmcia_device *link)
{
cs_release(link);
pcmcia_disable_device(link);
}

static const struct pcmcia_device_id ni_mio_cs_ids[] = {
Expand Down

0 comments on commit 1b69a75

Please sign in to comment.