diff options
Diffstat (limited to 'drivers/net/at1700.c')
-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 | ||