Skip to content

Commit

Permalink
Staging: dt3155: make module_{init/exit} functions static
Browse files Browse the repository at this point in the history
The module_init() and module_exit() functions should be static and marked
with __init and __exit.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Scott Smedley <ss@aao.gov.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jul 26, 2010
1 parent 14de72b commit 968181c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/dt3155/dt3155_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ static int find_PCI (void)
u32 allocatorAddr = 0;


int dt3155_init(void)
static int __init dt3155_init(void)
{
struct dt3155_status *dts;
int index;
Expand Down Expand Up @@ -1059,7 +1059,7 @@ int dt3155_init(void)
return 0;
}

void dt3155_exit(void)
static void __exit dt3155_exit(void)
{
struct dt3155_status *dts;
int index;
Expand Down

0 comments on commit 968181c

Please sign in to comment.