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

Commit 5abf1aa9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-bms: fix unbalanced IRQs in qpnp-bms.c"

parents 33197d65 d681c8e7
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -4307,6 +4307,12 @@ static int qpnp_bms_probe(struct spmi_device *spmi)
		goto error_setup;
	}

	rc = bms_request_irqs(chip);
	if (rc) {
		pr_err("error requesting bms irqs, rc = %d\n", rc);
		goto error_setup;
	}

	battery_insertion_check(chip);
	batfet_status_check(chip);
	battery_status_check(chip);
@@ -4340,12 +4346,6 @@ static int qpnp_bms_probe(struct spmi_device *spmi)
		goto unregister_dc;
	}

	rc = bms_request_irqs(chip);
	if (rc) {
		pr_err("error requesting bms irqs, rc = %d\n", rc);
		goto unregister_dc;
	}

	pr_info("probe success: soc =%d vbatt = %d ocv = %d r_sense_uohm = %u warm_reset = %d\n",
			get_prop_bms_capacity(chip), vbatt, chip->last_ocv_uv,
			chip->r_sense_uohm, warm_reset);