target: msm8974: Fix call to partition read table

Call parition read table from target code only when in
sdhci mode. Legacy mmc driver code calls parition read table
after mmc init is over, this causes partition read table to
be called two times if mmc is used in mci mode is used.

Change-Id: I6c00281d6471f1306915dea593902954cd99a2f3
diff --git a/target/msm8974/init.c b/target/msm8974/init.c
index fb9da87..7e8ef95 100644
--- a/target/msm8974/init.c
+++ b/target/msm8974/init.c
@@ -210,6 +210,14 @@
 			ASSERT(0);
 		}
 	}
+
+	/*
+	 * MMC initialization is complete, read the partition table info
+	 */
+	if (partition_read_table()) {
+		dprintf(CRITICAL, "Error reading the partition table info\n");
+		ASSERT(0);
+	}
 }
 
 struct mmc_device *target_mmc_device()
@@ -301,14 +309,6 @@
 #else
 	target_mmc_mci_init();
 #endif
-
-	/*
-	 * MMC initialization is complete, read the partition table info
-	 */
-	if (partition_read_table()) {
-		dprintf(CRITICAL, "Error reading the partition table info\n");
-		ASSERT(0);
-	}
 }
 
 unsigned board_machtype(void)