aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Schindler <jkschind@gmail.com>2008-02-28 02:31:12 -0500
committerJeff Garzik <jeff@garzik.org>2008-03-17 07:49:27 -0400
commit5250f33229c1e41b1fac27bb564697046e525b93 (patch)
tree56d183467227082bc4c3c8960723a0fffc2126d8
parent0ebd1c1d7dec3aae2c336fb1fd930961735ff249 (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.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