staging: comedi: make comedi_free_board_minor() static
authorIan Abbott <abbotti@mev.co.uk>
Thu, 4 Apr 2013 13:58:49 +0000 (14:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 21:33:17 +0000 (14:33 -0700)
`comedi_free_board_minor()` is now only called from the same .c file it
is defined in, so give it static linkage.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c
drivers/staging/comedi/comedi_internal.h

index ce050e4ba1070dc25280bbaf5558ae0ed36eee02..38c5f5fb00755e60206d3e39f048f4991a7bfb78 100644 (file)
@@ -2342,7 +2342,7 @@ static void comedi_free_board_file_info(struct comedi_file_info *info)
        }
 }
 
-void comedi_free_board_minor(unsigned minor)
+static void comedi_free_board_minor(unsigned minor)
 {
        BUG_ON(minor >= COMEDI_NUM_BOARD_MINORS);
        comedi_free_board_file_info(comedi_clear_minor(minor));
index fd14de662e8f0d418af727b7d948b9e50dda8e1f..05e9e6d951d036bfe033171a2320d1a4830735b4 100644 (file)
@@ -9,7 +9,6 @@
 int do_rangeinfo_ioctl(struct comedi_device *dev,
                       struct comedi_rangeinfo __user *arg);
 int comedi_alloc_board_minor(struct device *hardware_device);
-void comedi_free_board_minor(unsigned minor);
 void comedi_release_hardware_device(struct device *hardware_device);
 int comedi_alloc_subdevice_minor(struct comedi_subdevice *s);
 void comedi_free_subdevice_minor(struct comedi_subdevice *s);