Backport [7224] to the adm5120 flash map driver
SVN-Revision: 7270
This commit is contained in:
parent
ff111c2511
commit
61338e5fe8
1 changed files with 2 additions and 4 deletions
|
@ -391,10 +391,8 @@ init_mtd_partitions(struct mtd_info *mtd, size_t size)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* find and size rootfs */
|
/* find and size rootfs */
|
||||||
if (find_root(mtd,size,&adm5120_cfe_parts[2])==0) {
|
find_root(mtd,size,&adm5120_cfe_parts[2]);
|
||||||
adm5120_cfe_parts[2].size = size - adm5120_cfe_parts[2].offset -
|
adm5120_cfe_parts[2].size = size - adm5120_cfe_parts[2].offset - adm5120_cfe_parts[3].size;
|
||||||
adm5120_cfe_parts[3].size;
|
|
||||||
}
|
|
||||||
|
|
||||||
return adm5120_cfe_parts;
|
return adm5120_cfe_parts;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue