aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/at1700.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/at1700.c')
-rw-r--r--drivers/net/at1700.c7
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");
881MODULE_PARM_DESC(irq, "AT1700/FMV18X IRQ number"); 881MODULE_PARM_DESC(irq, "AT1700/FMV18X IRQ number");
882MODULE_PARM_DESC(net_debug, "AT1700/FMV18X debug level (0-6)"); 882MODULE_PARM_DESC(net_debug, "AT1700/FMV18X debug level (0-6)");
883 883
884int __init init_module(void) 884static 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
894void __exit 894static void __exit at1700_module_exit(void)
895cleanup_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}
900module_init(at1700_module_init);
901module_exit(at1700_module_exit);
901#endif /* MODULE */ 902#endif /* MODULE */
902MODULE_LICENSE("GPL"); 903MODULE_LICENSE("GPL");
903 904