power: pm8921-bms: fix 0% soc reported when started with a charger

When the device is started with a charger inserted, it reports 0% soc.
This is because a variable "soc_at_cv" is not initialized correctly in
the probe function.

Fix this by initializing it appropriately to -EINVAL.

Change-Id: I106f36e204c5cc4f16a8f52b9fa7a2a012282e35
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
diff --git a/drivers/power/pm8921-bms.c b/drivers/power/pm8921-bms.c
index bd6af0c..5e1b77a 100644
--- a/drivers/power/pm8921-bms.c
+++ b/drivers/power/pm8921-bms.c
@@ -1615,7 +1615,8 @@
 	 * keep reporting the prev chg soc
 	 */
 	if (vbat_uv <= chip->max_voltage_uv) {
-		pr_debug("CC CHG SOC %d\n", chip->prev_chg_soc);
+		pr_debug("vbat %d < max = %d CC CHG SOC %d\n",
+			vbat_uv, chip->max_voltage_uv, chip->prev_chg_soc);
 		return chip->prev_chg_soc;
 	}
 
@@ -1640,7 +1641,7 @@
 				chip->prev_chg_soc);
 	}
 
-	pr_debug("CHG SOC %d\n", chip->prev_chg_soc);
+	pr_debug("Reporting CHG SOC %d\n", chip->prev_chg_soc);
 	return chip->prev_chg_soc;
 }
 
@@ -3170,6 +3171,7 @@
 		chip->adjust_soc_low_threshold = 45;
 
 	chip->prev_pc_unusable = -EINVAL;
+	chip->soc_at_cv = -EINVAL;
 
 	chip->ignore_shutdown_soc = pdata->ignore_shutdown_soc;
 	rc = set_battery_data(chip);