summaryrefslogtreecommitdiff
path: root/target/linux/ar7/files/drivers/mtd
diff options
context:
space:
mode:
authorMatteo Croce <rootkit85@yahoo.it>2007-09-11 23:50:02 +0000
committerMatteo Croce <rootkit85@yahoo.it>2007-09-11 23:50:02 +0000
commit09b45caf093366be331e166fb51f7626a3db5391 (patch)
tree07feeecda3bc87ae6a7fa0bb638f65ddbdd67e48 /target/linux/ar7/files/drivers/mtd
parent1349562f8d7da4439ac6f724750edce3899f65f2 (diff)
downloadmtk-20170518-09b45caf093366be331e166fb51f7626a3db5391.zip
mtk-20170518-09b45caf093366be331e166fb51f7626a3db5391.tar.gz
mtk-20170518-09b45caf093366be331e166fb51f7626a3db5391.tar.bz2
more AR7 cleanups & fixes
SVN-Revision: 8758
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 b8c0ed0..aa2508f 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);