]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: comedi: cleanup_device() -> comedi_device_detach_cleanup()
authorIan Abbott <abbotti@mev.co.uk>
Fri, 8 Nov 2013 15:03:26 +0000 (15:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Nov 2013 00:16:43 +0000 (16:16 -0800)
Rename the local function `cleanup_device()` to
`comedi_device_detach_cleanup()`.  It is only called from the
`comedi_device_detach()` function and that is called from
`comedi_device_cleanup()` and other places.  The more specific function
name seems less confusing.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers.c

index c398422e073d2ef8f6b38f066cc7150ca6e50a36..1f44f2939f6af4d7a5132953139f4d42f33d3a94 100644 (file)
@@ -95,7 +95,7 @@ int comedi_alloc_subdevices(struct comedi_device *dev, int num_subdevices)
 }
 EXPORT_SYMBOL_GPL(comedi_alloc_subdevices);
 
-static void cleanup_device(struct comedi_device *dev)
+static void comedi_device_detach_cleanup(struct comedi_device *dev)
 {
        int i;
        struct comedi_subdevice *s;
@@ -137,7 +137,7 @@ void comedi_device_detach(struct comedi_device *dev)
        dev->attached = false;
        if (dev->driver)
                dev->driver->detach(dev);
-       cleanup_device(dev);
+       comedi_device_detach_cleanup(dev);
        up_write(&dev->attach_lock);
 }