diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2013-04-04 13:58:49 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-05 21:33:17 (GMT) |
commit | 70f30c3771f1e7c55d381954d84beff9c257a2b6 (patch) | |
tree | 0d4d239730ce3b11dc9fa7de6994674bb4e44933 | |
parent | f5b31e15acd1ab2fd9b9022c29a66f4625fa5658 (diff) | |
download | linux-fsl-qoriq-70f30c3771f1e7c55d381954d84beff9c257a2b6.tar.xz |
staging: comedi: make comedi_free_board_minor() static
`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>
-rw-r--r-- | drivers/staging/comedi/comedi_fops.c | 2 | ||||
-rw-r--r-- | drivers/staging/comedi/comedi_internal.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index ce050e4..38c5f5f 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c @@ -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)); diff --git a/drivers/staging/comedi/comedi_internal.h b/drivers/staging/comedi/comedi_internal.h index fd14de6..05e9e6d 100644 --- a/drivers/staging/comedi/comedi_internal.h +++ b/drivers/staging/comedi/comedi_internal.h @@ -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); |