Commit fbfcdf25 authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman

Staging: bcm: Fix a coding style error reported by checkpatch.pl

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: default avatarKevin McKinney <klmckinney1@gmail.com>
Reviewed-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6c15e002
...@@ -1974,8 +1974,6 @@ static const struct file_operations bcm_fops = { ...@@ -1974,8 +1974,6 @@ static const struct file_operations bcm_fops = {
.llseek = no_llseek, .llseek = no_llseek,
}; };
extern struct class *bcm_class;
int register_control_device_interface(PMINI_ADAPTER Adapter) int register_control_device_interface(PMINI_ADAPTER Adapter)
{ {
......
...@@ -74,4 +74,6 @@ ...@@ -74,4 +74,6 @@
#define DRV_VERSION VER_FILEVERSION_STR #define DRV_VERSION VER_FILEVERSION_STR
#define PFX DRV_NAME " " #define PFX DRV_NAME " "
extern struct class *bcm_class;
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment