projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d482ee
)
mtdpart: put_partition: start from p1
author
kfx
<kfx@rock-chips.com>
Fri, 19 Jul 2013 10:54:53 +0000
(18:54 +0800)
committer
kfx
<kfx@rock-chips.com>
Fri, 19 Jul 2013 10:54:53 +0000
(18:54 +0800)
fs/partitions/mtdpart.c
patch
|
blob
|
history
diff --git
a/fs/partitions/mtdpart.c
b/fs/partitions/mtdpart.c
index ea433583859c582c22d7797ec0d56a1c748716d0..7e93ddd7026ba2eab7872cdc314d333ea520a046 100644
(file)
--- a/
fs/partitions/mtdpart.c
+++ b/
fs/partitions/mtdpart.c
@@
-327,8
+327,8
@@
int mtdpart_partition(struct parsed_partitions *state)
return num_parts;
for(i = 0; i < num_parts; i++){
- put_partition(state, i, parts[i].from + FROM_OFFSET, parts[i].size);
- strcpy(state->parts[i].info.volname, parts[i].name);
+ put_partition(state, i
+1
, parts[i].from + FROM_OFFSET, parts[i].size);
+ strcpy(state->parts[i
+1
].info.volname, parts[i].name);
printk(KERN_INFO "%10s: 0x%09llx -- 0x%09llx (%llu MB)\n",
parts[i].name,
parts[i].from * 512,