diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2005-05-12 19:33:26 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-05-12 19:33:26 -0400 |
commit | e21ba28262037f5fe7ca8746502c7c03c3da817f (patch) | |
tree | 6124dc6ead01c381c120ca98473d4b0ee70053fd /drivers/net/8139cp.c | |
parent | 5734418d4f3420352eae38c8fcec699bf09874c1 (diff) |
[PATCH] 8139cp - module_param
Not sure if I sent this already...
Convert 8139cp to use new module_param() not old MODULE_PARM
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Diffstat (limited to 'drivers/net/8139cp.c')
-rw-r--r-- | drivers/net/8139cp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index 212eb90dfcc7..18946a56d9b5 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c | |||
@@ -54,6 +54,7 @@ | |||
54 | 54 | ||
55 | #include <linux/config.h> | 55 | #include <linux/config.h> |
56 | #include <linux/module.h> | 56 | #include <linux/module.h> |
57 | #include <linux/moduleparam.h> | ||
57 | #include <linux/kernel.h> | 58 | #include <linux/kernel.h> |
58 | #include <linux/compiler.h> | 59 | #include <linux/compiler.h> |
59 | #include <linux/netdevice.h> | 60 | #include <linux/netdevice.h> |
@@ -94,13 +95,13 @@ MODULE_DESCRIPTION("RealTek RTL-8139C+ series 10/100 PCI Ethernet driver"); | |||
94 | MODULE_LICENSE("GPL"); | 95 | MODULE_LICENSE("GPL"); |
95 | 96 | ||
96 | static int debug = -1; | 97 | static int debug = -1; |
97 | MODULE_PARM (debug, "i"); | 98 | module_param(debug, int, 0); |
98 | MODULE_PARM_DESC (debug, "8139cp: bitmapped message enable number"); | 99 | MODULE_PARM_DESC (debug, "8139cp: bitmapped message enable number"); |
99 | 100 | ||
100 | /* Maximum number of multicast addresses to filter (vs. Rx-all-multicast). | 101 | /* Maximum number of multicast addresses to filter (vs. Rx-all-multicast). |
101 | The RTL chips use a 64 element hash table based on the Ethernet CRC. */ | 102 | The RTL chips use a 64 element hash table based on the Ethernet CRC. */ |
102 | static int multicast_filter_limit = 32; | 103 | static int multicast_filter_limit = 32; |
103 | MODULE_PARM (multicast_filter_limit, "i"); | 104 | module_param(multicast_filter_limit, int, 0); |
104 | MODULE_PARM_DESC (multicast_filter_limit, "8139cp: maximum number of filtered multicast addresses"); | 105 | MODULE_PARM_DESC (multicast_filter_limit, "8139cp: maximum number of filtered multicast addresses"); |
105 | 106 | ||
106 | #define PFX DRV_NAME ": " | 107 | #define PFX DRV_NAME ": " |