diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-08-19 17:48:59 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-08-19 17:48:59 -0400 |
commit | 299176206b266f204be859adf9e66efd06628ab2 (patch) | |
tree | e25d9ee1c43940e00e70124a18d869a75de543ab /drivers/net/wan | |
parent | 5243a37b7991c85e3ea3afb6e3e13eea7ec2927d (diff) |
drivers/net: Remove deprecated use of pci_module_init()
From: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/dscc4.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/farsync.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/lmc/lmc_main.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/pc300_drv.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/pci200syn.c | 2 | ||||
-rw-r--r-- | drivers/net/wan/wanxl.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c index 684af4316ffd..af4d4155905b 100644 --- a/drivers/net/wan/dscc4.c +++ b/drivers/net/wan/dscc4.c | |||
@@ -2062,7 +2062,7 @@ static struct pci_driver dscc4_driver = { | |||
2062 | 2062 | ||
2063 | static int __init dscc4_init_module(void) | 2063 | static int __init dscc4_init_module(void) |
2064 | { | 2064 | { |
2065 | return pci_module_init(&dscc4_driver); | 2065 | return pci_register_driver(&dscc4_driver); |
2066 | } | 2066 | } |
2067 | 2067 | ||
2068 | static void __exit dscc4_cleanup_module(void) | 2068 | static void __exit dscc4_cleanup_module(void) |
diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c index 3705db04a343..564351aafa41 100644 --- a/drivers/net/wan/farsync.c +++ b/drivers/net/wan/farsync.c | |||
@@ -2697,7 +2697,7 @@ fst_init(void) | |||
2697 | for (i = 0; i < FST_MAX_CARDS; i++) | 2697 | for (i = 0; i < FST_MAX_CARDS; i++) |
2698 | fst_card_array[i] = NULL; | 2698 | fst_card_array[i] = NULL; |
2699 | spin_lock_init(&fst_work_q_lock); | 2699 | spin_lock_init(&fst_work_q_lock); |
2700 | return pci_module_init(&fst_driver); | 2700 | return pci_register_driver(&fst_driver); |
2701 | } | 2701 | } |
2702 | 2702 | ||
2703 | static void __exit | 2703 | static void __exit |
diff --git a/drivers/net/wan/lmc/lmc_main.c b/drivers/net/wan/lmc/lmc_main.c index 39f44241a728..7b5d81deb028 100644 --- a/drivers/net/wan/lmc/lmc_main.c +++ b/drivers/net/wan/lmc/lmc_main.c | |||
@@ -1790,7 +1790,7 @@ static struct pci_driver lmc_driver = { | |||
1790 | 1790 | ||
1791 | static int __init init_lmc(void) | 1791 | static int __init init_lmc(void) |
1792 | { | 1792 | { |
1793 | return pci_module_init(&lmc_driver); | 1793 | return pci_register_driver(&lmc_driver); |
1794 | } | 1794 | } |
1795 | 1795 | ||
1796 | static void __exit exit_lmc(void) | 1796 | static void __exit exit_lmc(void) |
diff --git a/drivers/net/wan/pc300_drv.c b/drivers/net/wan/pc300_drv.c index 567effff4a3e..56e69403d178 100644 --- a/drivers/net/wan/pc300_drv.c +++ b/drivers/net/wan/pc300_drv.c | |||
@@ -3677,7 +3677,7 @@ static struct pci_driver cpc_driver = { | |||
3677 | 3677 | ||
3678 | static int __init cpc_init(void) | 3678 | static int __init cpc_init(void) |
3679 | { | 3679 | { |
3680 | return pci_module_init(&cpc_driver); | 3680 | return pci_register_driver(&cpc_driver); |
3681 | } | 3681 | } |
3682 | 3682 | ||
3683 | static void __exit cpc_cleanup_module(void) | 3683 | static void __exit cpc_cleanup_module(void) |
diff --git a/drivers/net/wan/pci200syn.c b/drivers/net/wan/pci200syn.c index 4df61fa3214b..a6b9c33b68e4 100644 --- a/drivers/net/wan/pci200syn.c +++ b/drivers/net/wan/pci200syn.c | |||
@@ -476,7 +476,7 @@ static int __init pci200_init_module(void) | |||
476 | printk(KERN_ERR "pci200syn: Invalid PCI clock frequency\n"); | 476 | printk(KERN_ERR "pci200syn: Invalid PCI clock frequency\n"); |
477 | return -EINVAL; | 477 | return -EINVAL; |
478 | } | 478 | } |
479 | return pci_module_init(&pci200_pci_driver); | 479 | return pci_register_driver(&pci200_pci_driver); |
480 | } | 480 | } |
481 | 481 | ||
482 | 482 | ||
diff --git a/drivers/net/wan/wanxl.c b/drivers/net/wan/wanxl.c index b2031dfc4bb1..ec68f7dfd93f 100644 --- a/drivers/net/wan/wanxl.c +++ b/drivers/net/wan/wanxl.c | |||
@@ -837,7 +837,7 @@ static int __init wanxl_init_module(void) | |||
837 | #ifdef MODULE | 837 | #ifdef MODULE |
838 | printk(KERN_INFO "%s\n", version); | 838 | printk(KERN_INFO "%s\n", version); |
839 | #endif | 839 | #endif |
840 | return pci_module_init(&wanxl_pci_driver); | 840 | return pci_register_driver(&wanxl_pci_driver); |
841 | } | 841 | } |
842 | 842 | ||
843 | static void __exit wanxl_cleanup_module(void) | 843 | static void __exit wanxl_cleanup_module(void) |