Skip to content

Commit

Permalink
drivers/net/arcnet/capmode.c: replace init_module&cleanup_module with…
Browse files Browse the repository at this point in the history
… module_init&module_exit

Replaced init_module and cleanup_module with static functions and
module_init/module_exit.

Signed-off-by: Jon Schindler <jkschind@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jon Schindler authored and David S. Miller committed Mar 6, 2008
1 parent 32c9874 commit 7249d4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/arcnet/capmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,19 @@ void arcnet_cap_init(void)

#ifdef MODULE

int __init init_module(void)
static int __init capmode_module_init(void)
{
printk(VERSION);
arcnet_cap_init();
return 0;
}

void cleanup_module(void)
static void __exit capmode_module_exit(void)
{
arcnet_unregister_proto(&capmode_proto);
}
module_init(capmode_module_init);
module_exit(capmode_module_exit);

MODULE_LICENSE("GPL");
#endif /* MODULE */
Expand Down

0 comments on commit 7249d4c

Please sign in to comment.