This patch fixes "externs should be avoided in .c files"
in dgap.c as reported by checkpatch

Signed-off-by: Mark Hounschell <ma...@compro.net>
Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org>
---
 drivers/staging/dgap/dgap.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index cbce457..cac2791 100644
--- a/drivers/staging/dgap/dgap.c
+++ b/drivers/staging/dgap/dgap.c
@@ -223,11 +223,9 @@ static void dgap_do_wait_for_fep(struct board_t *brd);
 static int dgap_tty_register_ports(struct board_t *brd);
 static int dgap_firmware_load(struct pci_dev *pdev, int card_type);
 
-/* Driver load/unload functions */
-int                    dgap_init_module(void);
-void                   dgap_cleanup_module(void);
+/* Driver unload function */
+static void dgap_cleanup_module(void);
 
-module_init(dgap_init_module);
 module_exit(dgap_cleanup_module);
 
 /*
@@ -513,7 +511,7 @@ static struct toklist dgap_tlist[] = {
  *
  * Module load.  This is where it all starts.
  */
-int dgap_init_module(void)
+static int dgap_init_module(void)
 {
        int rc = 0;
 
@@ -552,6 +550,7 @@ int dgap_init_module(void)
 
        return rc;
 }
+module_init(dgap_init_module);
 
 /*
  * Start of driver.
@@ -663,7 +662,7 @@ static void dgap_remove_one(struct pci_dev *dev)
  *
  * Module unload.  This is where it all ends.
  */
-void dgap_cleanup_module(void)
+static void dgap_cleanup_module(void)
 {
        int i;
        ulong lock_flags;
-- 
1.8.1.4

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to