|
@@ -280,14 +280,11 @@ __setup("slram=", mtd_slram_setup);
|
|
static int __init init_slram(void)
|
|
static int __init init_slram(void)
|
|
{
|
|
{
|
|
char *devname;
|
|
char *devname;
|
|
- int i;
|
|
|
|
|
|
|
|
#ifndef MODULE
|
|
#ifndef MODULE
|
|
char *devstart;
|
|
char *devstart;
|
|
char *devlength;
|
|
char *devlength;
|
|
|
|
|
|
- i = 0;
|
|
|
|
-
|
|
|
|
if (!map) {
|
|
if (!map) {
|
|
E("slram: not enough parameters.\n");
|
|
E("slram: not enough parameters.\n");
|
|
return(-EINVAL);
|
|
return(-EINVAL);
|
|
@@ -314,6 +311,7 @@ static int __init init_slram(void)
|
|
}
|
|
}
|
|
#else
|
|
#else
|
|
int count;
|
|
int count;
|
|
|
|
+ int i;
|
|
|
|
|
|
for (count = 0; count < SLRAM_MAX_DEVICES_PARAMS && map[count];
|
|
for (count = 0; count < SLRAM_MAX_DEVICES_PARAMS && map[count];
|
|
count++) {
|
|
count++) {
|