diff options
| author | Jon Schindler <jkschind@gmail.com> | 2008-03-05 21:49:51 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2008-03-05 21:49:51 -0500 |
| commit | 7249d4c3985454ee5cd150198bb21cb15dee242e (patch) | |
| tree | b897e2ad35205c107ceff957aa4505895b757b6c /drivers | |
| parent | 32c9874759651b69e496f89ec9e5e6702f67ffca (diff) | |
drivers/net/arcnet/capmode.c: replace init_module&cleanup_module with 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>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/arcnet/capmode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/arcnet/capmode.c b/drivers/net/arcnet/capmode.c index cc4610db6395..02cb8f1c1148 100644 --- a/drivers/net/arcnet/capmode.c +++ b/drivers/net/arcnet/capmode.c | |||
| @@ -80,17 +80,19 @@ void arcnet_cap_init(void) | |||
| 80 | 80 | ||
| 81 | #ifdef MODULE | 81 | #ifdef MODULE |
| 82 | 82 | ||
| 83 | int __init init_module(void) | 83 | static int __init capmode_module_init(void) |
| 84 | { | 84 | { |
| 85 | printk(VERSION); | 85 | printk(VERSION); |
| 86 | arcnet_cap_init(); | 86 | arcnet_cap_init(); |
| 87 | return 0; | 87 | return 0; |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | void cleanup_module(void) | 90 | static void __exit capmode_module_exit(void) |
| 91 | { | 91 | { |
| 92 | arcnet_unregister_proto(&capmode_proto); | 92 | arcnet_unregister_proto(&capmode_proto); |
| 93 | } | 93 | } |
| 94 | module_init(capmode_module_init); | ||
| 95 | module_exit(capmode_module_exit); | ||
| 94 | 96 | ||
| 95 | MODULE_LICENSE("GPL"); | 97 | MODULE_LICENSE("GPL"); |
| 96 | #endif /* MODULE */ | 98 | #endif /* MODULE */ |
