aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/files/drivers/mtd
diff options
context:
space:
mode:
authorMatteo Croce <matteo@openwrt.org>2007-09-11 23:50:02 +0000
committerMatteo Croce <matteo@openwrt.org>2007-09-11 23:50:02 +0000
commitd807fe3642a24833664adb3d4c2026cd22bf5ccd (patch)
tree555d545c71075785ea65b4cd2aaeb06560f55fc7 /target/linux/ar7/files/drivers/mtd
parent54801484c2f3295cfd5d0a877b18b9ba374dcc82 (diff)
downloadupstream-d807fe3642a24833664adb3d4c2026cd22bf5ccd.tar.gz
upstream-d807fe3642a24833664adb3d4c2026cd22bf5ccd.tar.bz2
upstream-d807fe3642a24833664adb3d4c2026cd22bf5ccd.zip
more AR7 cleanups & fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8758 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7/files/drivers/mtd')
-rw-r--r--target/linux/ar7/files/drivers/mtd/ar7part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar7/files/drivers/mtd/ar7part.c b/target/linux/ar7/files/drivers/mtd/ar7part.c
index b8c0ed0b2e..aa2508f90d 100644
--- a/target/linux/ar7/files/drivers/mtd/ar7part.c
+++ b/target/linux/ar7/files/drivers/mtd/ar7part.c
@@ -59,7 +59,7 @@ static int create_mtd_partitions(struct mtd_info *master,
ar7_parts[1].size = master->erasesize;
ar7_parts[1].mask_flags = 0;
- do {
+ do { /* Try 10 blocks starting from master->erasesize */
offset = pre_size;
master->read(master, offset,
sizeof(header), &len, (u_char *)&header);