audio kernel: add null point check for lpass cdc.

add null point check for lpass cdc.

Change-Id: I280d4dcb5a1e28336fd1b074231b28c398808880
This commit is contained in:
yuayang
2022-11-14 17:09:44 +08:00
parent c2adcdf8a0
commit bfbf93e9f8
2 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ int digital_cdc_rsc_mgr_hw_vote_enable(struct clk *vote_handle, struct device *d
ret = clk_prepare_enable(vote_handle);
mutex_unlock(&hw_vote_lock);
dev_dbg(dev, "%s: return %d\n", __func__, ret);
dev_err(dev, "%s: return %d\n", __func__, ret);
trace_printk("%s: return %d\n", __func__, ret);
return ret;
}