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

Commit 029363db authored by Swetha Chikkaboraiah's avatar Swetha Chikkaboraiah Committed by Gerrit - the friendly Code Review server
Browse files

qcom: qpnp-fg-gen3: Continue fg_gen3_probe() when !DEBUG_FS



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

Change-Id: I6450ab32a9fac19e46845a8f5b4135289469b3f8
Signed-off-by: default avatarSwetha Chikkaboraiah <schikk@codeaurora.org>
parent 38055361
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -5468,12 +5468,7 @@ static int fg_gen3_probe(struct platform_device *pdev)
	/* Keep BATT_MISSING_IRQ disabled until we require it */
	vote(fg->batt_miss_irq_en_votable, BATT_MISS_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 = sysfs_create_groups(&fg->dev->kobj, fg_groups);
	if (rc < 0) {