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

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

Merge "ASoC: wcd9xxx: check NULL for mbhc->resmgr->reg_addr"

parents a99df2cb 02cbd6c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1903,7 +1903,7 @@ static int wcd9xxx_enable_hs_detect(struct wcd9xxx_mbhc *mbhc,
					    0);
	}

	if (mbhc->resmgr->reg_addr->micb_4_mbhc)
	if (mbhc->resmgr->reg_addr && mbhc->resmgr->reg_addr->micb_4_mbhc)
		snd_soc_update_bits(codec, mbhc->resmgr->reg_addr->micb_4_mbhc,
				    0x3, mbhc->mbhc_cfg->micbias);