staging: comedi: quatech_daqp_cs: use comedi_pcmcia_disable() for (*detach)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 4 Feb 2013 23:42:09 +0000 (16:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Feb 2013 19:18:57 +0000 (11:18 -0800)
The (*detach) function, daqp_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>
drivers/staging/comedi/drivers/quatech_daqp_cs.c

index 869a4afc440ee1c00b38404081b56097b6dbf3f8..6eab3bbb378bc09b41e94ac728c8e470556d61b7 100644 (file)
@@ -790,16 +790,11 @@ static int daqp_auto_attach(struct comedi_device *dev,
        return 0;
 }
 
-static void daqp_detach(struct comedi_device *dev)
-{
-       comedi_pcmcia_disable(dev);
-}
-
 static struct comedi_driver driver_daqp = {
        .driver_name    = "quatech_daqp_cs",
        .module         = THIS_MODULE,
        .auto_attach    = daqp_auto_attach,
-       .detach         = daqp_detach,
+       .detach         = comedi_pcmcia_disable,
 };
 
 static int daqp_cs_suspend(struct pcmcia_device *link)