We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b39301e commit 1cdbfd4Copy full SHA for 1cdbfd4
drivers/soundwire/qcom.c
@@ -1321,8 +1321,8 @@ static int qcom_swrm_probe(struct platform_device *pdev)
1321
}
1322
1323
if (data->sw_clk_gate_required) {
1324
- ctrl->audio_cgcr = devm_reset_control_get_exclusive(dev, "swr_audio_cgcr");
1325
- if (IS_ERR_OR_NULL(ctrl->audio_cgcr)) {
+ ctrl->audio_cgcr = devm_reset_control_get_optional_exclusive(dev, "swr_audio_cgcr");
+ if (IS_ERR(ctrl->audio_cgcr)) {
1326
dev_err(dev, "Failed to get cgcr reset ctrl required for SW gating\n");
1327
ret = PTR_ERR(ctrl->audio_cgcr);
1328
goto err_init;
0 commit comments