From: H Hartley Sweeten Date: Mon, 9 Dec 2013 22:31:11 +0000 (-0700) Subject: staging: comedi: pcmmio: use comedi_legacy_detach() for (*detach) X-Git-Tag: firefly_0821_release~176^2~4489^2~315 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0cc9a4e4b65ffbd9668d31b2d59356b362c9ae39;p=firefly-linux-kernel-4.4.55.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/pcmmio.c b/drivers/staging/comedi/drivers/pcmmio.c index 1e1f57ee8934..60463ecef47f 100644 --- a/drivers/staging/comedi/drivers/pcmmio.c +++ b/drivers/staging/comedi/drivers/pcmmio.c @@ -940,16 +940,11 @@ static int pcmmio_attach(struct comedi_device *dev, struct comedi_devconfig *it) return 1; } -static void pcmmio_detach(struct comedi_device *dev) -{ - comedi_legacy_detach(dev); -} - static struct comedi_driver pcmmio_driver = { .driver_name = "pcmmio", .module = THIS_MODULE, .attach = pcmmio_attach, - .detach = pcmmio_detach, + .detach = comedi_legacy_detach, }; module_comedi_driver(pcmmio_driver);