diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2012-12-19 15:41:42 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-07 14:25:48 -0800 |
commit | 76cca89f4b032abad514c0821be35d999c9707ce (patch) | |
tree | 848510284081d7917192c6c527b3b31917cd8c33 /drivers | |
parent | 91fa0b0c96eb46444c9bc0d2994626fc371dd6db (diff) |
staging: comedi: comedi_fops: move comedi_cleanup_legacy_minors()
This function is only called by the module_{init,exit} functions. For
aesthetic reasons, move it near them.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/comedi_fops.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index 805a503ce21..a7bec57a0ab 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c @@ -2197,14 +2197,6 @@ static const struct file_operations comedi_fops = { static struct class *comedi_class; static struct cdev comedi_cdev; -static void comedi_cleanup_legacy_minors(void) -{ - unsigned i; - - for (i = 0; i < comedi_num_legacy_minors; i++) - comedi_free_board_minor(i); -} - void comedi_error(const struct comedi_device *dev, const char *s) { dev_err(dev->class_dev, "%s: %s\n", dev->driver->driver_name, s); @@ -2427,6 +2419,14 @@ void comedi_free_subdevice_minor(struct comedi_subdevice *s) kfree(info); } +static void comedi_cleanup_legacy_minors(void) +{ + unsigned i; + + for (i = 0; i < comedi_num_legacy_minors; i++) + comedi_free_board_minor(i); +} + static int __init comedi_init(void) { int i; |