Staging: comedi: make comedi_alloc_board_minor local to comedi core
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 May 2010 22:20:29 +0000 (15:20 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:03 +0000 (11:36 -0700)
No one outside of the comedi core calls this function, so create
an internal.h file to put the prototype in, and don't export
it to the world.

Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/comedi_fops.c
drivers/staging/comedi/comedidev.h
drivers/staging/comedi/drivers.c
drivers/staging/comedi/internal.h [new file with mode: 0644]

index 135c80ab6d10f75806890639b1bcb1ca0270c746..2634af2f33df5f26f08a1f60f7f779c1dc5eef5c 100644 (file)
@@ -49,7 +49,7 @@
 #include <linux/io.h>
 #include <linux/uaccess.h>
 
-/* #include "kvmem.h" */
+#include "internal.h"
 
 MODULE_AUTHOR("http://www.comedi.org");
 MODULE_DESCRIPTION("Comedi core module");
@@ -2156,7 +2156,6 @@ int comedi_alloc_board_minor(struct device *hardware_device)
        }
        return i;
 }
-EXPORT_SYMBOL_GPL(comedi_alloc_board_minor);
 
 void comedi_free_board_minor(unsigned minor)
 {
index 9e13964ac6d34a999d3281441039ae12be8d186f..5f017c2383b38367e212660d9605428d6d5bbc45 100644 (file)
@@ -522,7 +522,6 @@ static inline void *comedi_aux_data(int options[], int n)
        return (void *)address;
 }
 
-int comedi_alloc_board_minor(struct device *hardware_device);
 void comedi_free_board_minor(unsigned minor);
 int comedi_alloc_subdevice_minor(struct comedi_device *dev,
                                 struct comedi_subdevice *s);
index a8f3d790b3d5872176ff2992788f7b9dfdf73d90..475778fb68012d6e1ababdf9ef686951f5caf75e 100644 (file)
 #include <linux/ioport.h>
 #include <linux/mm.h>
 #include <linux/slab.h>
-#include "comedidev.h"
 #include <linux/highmem.h>     /* for SuSE brokenness */
 #include <linux/vmalloc.h>
 #include <linux/cdev.h>
 #include <linux/dma-mapping.h>
-
 #include <linux/io.h>
 #include <asm/system.h>
 
+#include "comedidev.h"
+#include "internal.h"
+
 static int postconfig(struct comedi_device *dev);
 static int insn_rw_emulate_bits(struct comedi_device *dev,
                                struct comedi_subdevice *s,
diff --git a/drivers/staging/comedi/internal.h b/drivers/staging/comedi/internal.h
new file mode 100644 (file)
index 0000000..4ced6bf
--- /dev/null
@@ -0,0 +1,2 @@
+
+int comedi_alloc_board_minor(struct device *hardware_device);