staging: comedi: ni_mio_cs: remove cs_release()

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>
This commit is contained in:
H Hartley Sweeten 2013-01-25 17:34:10 -07:00 committed by Greg Kroah-Hartman
parent bea5b9035d
commit 1b69a7577a

View File

@ -378,14 +378,9 @@ static int cs_attach(struct pcmcia_device *link)
return 0; return 0;
} }
static void cs_release(struct pcmcia_device *link)
{
pcmcia_disable_device(link);
}
static void cs_detach(struct pcmcia_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[] = { static const struct pcmcia_device_id ni_mio_cs_ids[] = {