summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2005-05-12 19:33:26 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-05-12 19:33:26 -0400
commite21ba28262037f5fe7ca8746502c7c03c3da817f (patch)
tree6124dc6ead01c381c120ca98473d4b0ee70053fd
parent5734418d4f3420352eae38c8fcec699bf09874c1 (diff)
downloadop-kernel-dev-e21ba28262037f5fe7ca8746502c7c03c3da817f.zip
op-kernel-dev-e21ba28262037f5fe7ca8746502c7c03c3da817f.tar.gz
[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>
-rw-r--r--drivers/net/8139cp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c
index 212eb90..18946a5 100644
--- a/drivers/net/8139cp.c
+++ b/drivers/net/8139cp.c
@@ -54,6 +54,7 @@
#include <linux/config.h>
#include <linux/module.h>
+#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/compiler.h>
#include <linux/netdevice.h>
@@ -94,13 +95,13 @@ MODULE_DESCRIPTION("RealTek RTL-8139C+ series 10/100 PCI Ethernet driver");
MODULE_LICENSE("GPL");
static int debug = -1;
-MODULE_PARM (debug, "i");
+module_param(debug, int, 0);
MODULE_PARM_DESC (debug, "8139cp: bitmapped message enable number");
/* Maximum number of multicast addresses to filter (vs. Rx-all-multicast).
The RTL chips use a 64 element hash table based on the Ethernet CRC. */
static int multicast_filter_limit = 32;
-MODULE_PARM (multicast_filter_limit, "i");
+module_param(multicast_filter_limit, int, 0);
MODULE_PARM_DESC (multicast_filter_limit, "8139cp: maximum number of filtered multicast addresses");
#define PFX DRV_NAME ": "
OpenPOWER on IntegriCloud