mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 03:13:20 +02:00
Backport [7224] to the adm5120 flash map driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7270 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f4fb35b391
commit
e6eda13dd5
@ -391,10 +391,8 @@ init_mtd_partitions(struct mtd_info *mtd, size_t size)
|
||||
}
|
||||
|
||||
/* find and size rootfs */
|
||||
if (find_root(mtd,size,&adm5120_cfe_parts[2])==0) {
|
||||
adm5120_cfe_parts[2].size = size - adm5120_cfe_parts[2].offset -
|
||||
adm5120_cfe_parts[3].size;
|
||||
}
|
||||
find_root(mtd,size,&adm5120_cfe_parts[2]);
|
||||
adm5120_cfe_parts[2].size = size - adm5120_cfe_parts[2].offset - adm5120_cfe_parts[3].size;
|
||||
|
||||
return adm5120_cfe_parts;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user