| To: | Jeff Garzik <jgarzik@xxxxxxxxx>, Jean Tourrilhes <jt@xxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 2.6.9] hp100: use module_param and netdev_priv |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Mon, 18 Oct 2004 13:40:02 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <20041018121527.053b3309@xxxxxxxxxxxxxxxxx> |
| Organization: | Open Source Development Lab |
| References: | <20041018121527.053b3309@xxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
One more module_param here.
Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>
diff -Nru a/drivers/net/hp100.c b/drivers/net/hp100.c
--- a/drivers/net/hp100.c 2004-10-18 13:38:10 -07:00
+++ b/drivers/net/hp100.c 2004-10-18 13:38:10 -07:00
@@ -3003,7 +3003,8 @@
#define HP100_DEVICES 5
/* Parameters set by insmod */
static int hp100_port[HP100_DEVICES] = { 0, [1 ... (HP100_DEVICES-1)] = -1 };
-MODULE_PARM(hp100_port, "1-" __MODULE_STRING(HP100_DEVICES) "i");
+static int nports;
+module_param_array(hp100_port, int, nports, 0);
/* List of devices */
static struct net_device *hp100_devlist[HP100_DEVICES];
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2.6.9-rc4 1/2] typhoon: use module_param, Stephen Hemminger |
|---|---|
| Next by Date: | [PATCH 2.6]: Fix policy update bug when increasing priority of last policy, Patrick McHardy |
| Previous by Thread: | [PATCH 2.6.9] hp100: use module_param and netdev_priv, Stephen Hemminger |
| Next by Thread: | Re: [PATCH 2.6.9] hp100: use module_param and netdev_priv, Jean Tourrilhes |
| Indexes: | [Date] [Thread] [Top] [All Lists] |