staging: comedi: ni_mio_cs: remove cs_release()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 26 Jan 2013 00:34:10 +0000 (17:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 04:08:23 +0000 (23:08 -0500)
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>
drivers/staging/comedi/drivers/ni_mio_cs.c

index 4043d02bd6baa461442d06607925cae0c63fd64a..e0adf23bd527da23119536cbc5fc4dd6ad475e0a 100644 (file)
@@ -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[] = {