瀏覽代碼

staging: comedi: quatech_daqp_cs: use comedi_pcmcia_disable() for (*detach)

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>
H Hartley Sweeten 12 年之前
父節點
當前提交
25736670bc
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      drivers/staging/comedi/drivers/quatech_daqp_cs.c

+ 1 - 6
drivers/staging/comedi/drivers/quatech_daqp_cs.c

@@ -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)