[PATCH] correct ps2esdi module parm name

From: Randy.Dunlap
Date: Sun May 16 2004 - 23:43:38 EST



// Linux 2.6.6
// module parameter name is incorrect (looks like a thinko);
// module cannot be loaded as is;

There is no global "track" variable, and just above the patched area is:

static int cyl[MAX_HD] = {-1,-1};
static int head[MAX_HD] = {-1, -1};
static int sect[MAX_HD] = {-1, -1};


diffstat:=
drivers/block/ps2esdi.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)


diff -Naurp ./drivers/block/ps2esdi.c~orig ./drivers/block/ps2esdi.c
--- ./drivers/block/ps2esdi.c~orig 2004-05-09 19:31:56.000000000 -0700
+++ ./drivers/block/ps2esdi.c 2004-05-16 21:19:49.000000000 -0700
@@ -180,7 +180,7 @@ static int sect[MAX_HD] = {-1, -1};
MODULE_PARM(tp720esdi, "i");
MODULE_PARM(cyl, "i");
MODULE_PARM(head, "i");
-MODULE_PARM(track, "i");
+MODULE_PARM(sect, "i");
MODULE_LICENSE("GPL");

int init_module(void) {


--
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/