asoc: wcd: add NULL pointer check for wcd component

add NULL pointer check for wcd component.

Change-Id: Icfba04b689ace34f8f82b3ee58dd79ce139861b5
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
This commit is contained in:
Yuhui Zhao
2022-10-27 11:24:29 +08:00
committed by Gerrit - the friendly Code Review server
부모 c2adcdf8a0
커밋 c9ec60ea62
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@@ -4483,8 +4483,9 @@ static int wcd939x_suspend(struct device *dev)
clear_bit(ALLOW_BUCK_DISABLE, &wcd939x->status_mask);
}
if (wcd939x->dapm_bias_off ||
(wcd939x->component &&
(snd_soc_component_get_bias_level(wcd939x->component) ==
SND_SOC_BIAS_OFF)) {
SND_SOC_BIAS_OFF))) {
msm_cdc_set_supplies_lpm_mode(wcd939x->dev,
wcd939x->supplies,
pdata->regulator,