staging: comedi: quatech_daqp_cs: remove daqp_cs_release()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 25 Jan 2013 21:59:36 +0000 (14:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 04:06:40 +0000 (23:06 -0500)
This function justs emits a dev_dbg() message then calls
pcmcia_disable_device(). The dev_dbg() is just added noise.

Remove the function and just call pcmcia_disable_device().

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/quatech_daqp_cs.c

index 748aa6a7a88a5fb26af0d21102f6770250c6c781..b2b755f031b1d2c311c91b8a2542d4209c44ae17 100644 (file)
@@ -936,13 +936,6 @@ static int daqp_cs_resume(struct pcmcia_device *link)
        return 0;
 }
 
-static void daqp_cs_release(struct pcmcia_device *link)
-{
-       dev_dbg(&link->dev, "daqp_cs_release\n");
-
-       pcmcia_disable_device(link);
-}
-
 static int daqp_pcmcia_config_loop(struct pcmcia_device *p_dev, void *priv_data)
 {
        if (p_dev->config_index == 0)
@@ -976,7 +969,7 @@ static void daqp_cs_config(struct pcmcia_device *link)
        return;
 
 failed:
-       daqp_cs_release(link);
+       pcmcia_disable_device(link);
 }
 
 static int daqp_cs_attach(struct pcmcia_device *link)
@@ -1014,7 +1007,7 @@ static void daqp_cs_detach(struct pcmcia_device *link)
        struct local_info_t *dev = link->priv;
 
        dev->stop = 1;
-       daqp_cs_release(link);
+       pcmcia_disable_device(link);
 
        /* Unlink device structure, and free it */
        dev_table[dev->table_index] = NULL;