Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a099a4a authored by Rahul Shahare's avatar Rahul Shahare
Browse files

qcom: qpnp-fg-gen4: Continue fg_gen4_probe() when !DEBUG_FS



fg_gen4_probe() should not be dependent on DEBUG_FS
API's returning success. Continue device probe,
when DEBUG_FS is disabled.

Change-Id: Ibb01e00d4f6cc7982701e8dd2ac2cd51148a9aea
Signed-off-by: default avatarPrateek Sood <prsood@codeaurora.org>
Signed-off-by: default avatarRahul Shahare <rshaha@codeaurora.org>
parent 4c8629bc
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -6190,12 +6190,7 @@ static int fg_gen4_probe(struct platform_device *pdev)
	/* Keep MEM_ATTN_IRQ disabled until we require it */
	vote(chip->mem_attn_irq_en_votable, MEM_ATTN_IRQ_VOTER, false, 0);

	rc = fg_debugfs_create(fg);
	if (rc < 0) {
		dev_err(fg->dev, "Error in creating debugfs entries, rc:%d\n",
			rc);
		goto exit;
	}
	fg_debugfs_create(fg);

	rc = fg_get_battery_voltage(fg, &volt_uv);
	if (!rc)