mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-20 02:27:17 +07:00
staging: comedi: cb_das16_cs: use comedi_pcmcia_disable() for (*detach)
The (*detach) function, das16cs_detach() is 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>
This commit is contained in:
parent
bcd22e8ece
commit
7fadd565f0
@ -477,16 +477,11 @@ static int das16cs_auto_attach(struct comedi_device *dev,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void das16cs_detach(struct comedi_device *dev)
|
|
||||||
{
|
|
||||||
comedi_pcmcia_disable(dev);
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct comedi_driver driver_das16cs = {
|
static struct comedi_driver driver_das16cs = {
|
||||||
.driver_name = "cb_das16_cs",
|
.driver_name = "cb_das16_cs",
|
||||||
.module = THIS_MODULE,
|
.module = THIS_MODULE,
|
||||||
.auto_attach = das16cs_auto_attach,
|
.auto_attach = das16cs_auto_attach,
|
||||||
.detach = das16cs_detach,
|
.detach = comedi_pcmcia_disable,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int das16cs_pcmcia_attach(struct pcmcia_device *link)
|
static int das16cs_pcmcia_attach(struct pcmcia_device *link)
|
||||||
|
Loading…
Reference in New Issue
Block a user