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

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

Merge "ASoC: wcd9335: Reset power_active_ref to 0 when it is negative"

parents a2c6e77e 21472bb1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -12127,8 +12127,10 @@ static int tasha_dig_core_power_collapse(struct tasha_priv *tasha,
		goto unlock_mutex;

	if (tasha->power_active_ref < 0) {
		dev_dbg(tasha->dev, "%s: power_active_ref is negative\n",
		dev_info(tasha->dev,
			"%s: power_active_ref is negative, resetting it\n",
			__func__);
		tasha->power_active_ref = 0;
		goto unlock_mutex;
	}