staging: comedi: pcmmio: use comedi_legacy_detach() for (*detach)
The (*detach) of this driver just calls comedi_legacy_detach(). Use that directly for the (*detach). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
35c5e88498
commit
0cc9a4e4b6
@ -940,16 +940,11 @@ static int pcmmio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pcmmio_detach(struct comedi_device *dev)
|
|
||||||
{
|
|
||||||
comedi_legacy_detach(dev);
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct comedi_driver pcmmio_driver = {
|
static struct comedi_driver pcmmio_driver = {
|
||||||
.driver_name = "pcmmio",
|
.driver_name = "pcmmio",
|
||||||
.module = THIS_MODULE,
|
.module = THIS_MODULE,
|
||||||
.attach = pcmmio_attach,
|
.attach = pcmmio_attach,
|
||||||
.detach = pcmmio_detach,
|
.detach = comedi_legacy_detach,
|
||||||
};
|
};
|
||||||
module_comedi_driver(pcmmio_driver);
|
module_comedi_driver(pcmmio_driver);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user