diff options
author | Jon Schindler <jkschind@gmail.com> | 2008-02-28 02:31:12 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-03-17 07:49:27 -0400 |
commit | 5250f33229c1e41b1fac27bb564697046e525b93 (patch) | |
tree | 56d183467227082bc4c3c8960723a0fffc2126d8 | |
parent | 0ebd1c1d7dec3aae2c336fb1fd930961735ff249 (diff) |
/drivers/net/at1700.c replaced 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: Jeff Garzik <jeff@garzik.org>
-rw-r--r-- | drivers/net/at1700.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/at1700.c b/drivers/net/at1700.c index 24d81f922533..7e874d485d24 100644 --- a/drivers/net/at1700.c +++ b/drivers/net/at1700.c | |||
@@ -881,7 +881,7 @@ MODULE_PARM_DESC(io, "AT1700/FMV18X I/O base address"); | |||
881 | MODULE_PARM_DESC(irq, "AT1700/FMV18X IRQ number"); | 881 | MODULE_PARM_DESC(irq, "AT1700/FMV18X IRQ number"); |
882 | MODULE_PARM_DESC(net_debug, "AT1700/FMV18X debug level (0-6)"); | 882 | MODULE_PARM_DESC(net_debug, "AT1700/FMV18X debug level (0-6)"); |
883 | 883 | ||
884 | int __init init_module(void) | 884 | static int __init at1700_module_init(void) |
885 | { | 885 | { |
886 | if (io == 0) | 886 | if (io == 0) |
887 | printk("at1700: You should not use auto-probing with insmod!\n"); | 887 | printk("at1700: You should not use auto-probing with insmod!\n"); |
@@ -891,13 +891,14 @@ int __init init_module(void) | |||
891 | return 0; | 891 | return 0; |
892 | } | 892 | } |
893 | 893 | ||
894 | void __exit | 894 | static void __exit at1700_module_exit(void) |
895 | cleanup_module(void) | ||
896 | { | 895 | { |
897 | unregister_netdev(dev_at1700); | 896 | unregister_netdev(dev_at1700); |
898 | cleanup_card(dev_at1700); | 897 | cleanup_card(dev_at1700); |
899 | free_netdev(dev_at1700); | 898 | free_netdev(dev_at1700); |
900 | } | 899 | } |
900 | module_init(at1700_module_init); | ||
901 | module_exit(at1700_module_exit); | ||
901 | #endif /* MODULE */ | 902 | #endif /* MODULE */ |
902 | MODULE_LICENSE("GPL"); | 903 | MODULE_LICENSE("GPL"); |
903 | 904 | ||