Staging: bcm: Fix a coding style error reported by checkpatch.pl
authorKevin McKinney <klmckinney1@gmail.com>
Tue, 16 Aug 2011 02:10:12 +0000 (22:10 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 22:20:52 +0000 (15:20 -0700)
Tool checkpatch.pl reported the following error: extern struct class *bcm_class;"
declaration not allowed in .c files. Therefore, I move this declaration into
the header "headers.h" file.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/bcm/Bcmchar.c
drivers/staging/bcm/headers.h

index 4bcc38b5bbb3520a70cd399287ebfaf267f8ebaa..d3f3856e2dcc19dcaa1909e59546d52fa85ef734 100644 (file)
@@ -1974,8 +1974,6 @@ static const struct file_operations bcm_fops = {
        .llseek = no_llseek,
 };
 
-extern struct class *bcm_class;
-
 int register_control_device_interface(PMINI_ADAPTER Adapter)
 {
 
index 947d063256818aa92ef67d8e3b71df625ed5ed22..da47db8c8f29941d441544480fc62d94197deb40 100644 (file)
@@ -74,4 +74,6 @@
 #define DRV_VERSION    VER_FILEVERSION_STR
 #define PFX            DRV_NAME " "
 
+extern struct class *bcm_class;
+
 #endif
This page took 0.028045 seconds and 5 git commands to generate.