Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25736670 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 87fe1452
Loading
Loading
Loading
Loading
+1 −6
Original line number Original line Diff line number Diff line
@@ -790,16 +790,11 @@ static int daqp_auto_attach(struct comedi_device *dev,
	return 0;
	return 0;
}
}


static void daqp_detach(struct comedi_device *dev)
{
	comedi_pcmcia_disable(dev);
}

static struct comedi_driver driver_daqp = {
static struct comedi_driver driver_daqp = {
	.driver_name	= "quatech_daqp_cs",
	.driver_name	= "quatech_daqp_cs",
	.module		= THIS_MODULE,
	.module		= THIS_MODULE,
	.auto_attach	= daqp_auto_attach,
	.auto_attach	= daqp_auto_attach,
	.detach		= daqp_detach,
	.detach		= comedi_pcmcia_disable,
};
};


static int daqp_cs_suspend(struct pcmcia_device *link)
static int daqp_cs_suspend(struct pcmcia_device *link)