Merge "msmzirc : Fix the system partition index value"
diff --git a/target/msmzirc/init.c b/target/msmzirc/init.c
index 22e03df..ef2ebf7 100644
--- a/target/msmzirc/init.c
+++ b/target/msmzirc/init.c
@@ -246,7 +246,7 @@
}
else {
/* Below is for emmc boot */
- system_ptn_index = partition_get_index(part);
+ system_ptn_index = partition_get_index(part) + 1; /* Adding +1 as offsets for eMMC start at 1 and NAND at 0 */
if (system_ptn_index < 0) {
dprintf(CRITICAL,
"WARN: Cannot get partition index for %s\n", part);