]> git.hungrycats.org Git - linux/commitdiff
[PATCH] s390: xpram driver
authorAndrew Morton <akpm@osdl.org>
Mon, 1 Mar 2004 15:01:37 +0000 (07:01 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 1 Mar 2004 15:01:37 +0000 (07:01 -0800)
From: Martin Schwidefsky <schwidefsky@de.ibm.com>

xpram fix: Replace old style module parameter definition with new style.

drivers/s390/block/xpram.c

index e0a093ad1202033eccd6a6f9ef45645e5b6c8955..532a94dccb0f7bef0766d7a20e1bc1033ba75536 100644 (file)
@@ -74,9 +74,10 @@ static int xpram_devs;
  */
 static int devs = XPRAM_DEVS;
 static unsigned int sizes[XPRAM_MAX_DEVS];
+static unsigned int sizes_count;
 
 module_param(devs, int, 0);
-MODULE_PARM(sizes,"1-" __MODULE_STRING(XPRAM_MAX_DEVS) "i"); 
+module_param_array(sizes, int, sizes_count, 0);
 
 MODULE_PARM_DESC(devs, "number of devices (\"partitions\"), " \
                 "the default is " __MODULE_STRING(XPRAM_DEVS) "\n");