Skip to content

Commit af27025

Browse files
bebarinobroonie
authored andcommitted
ASoC: qcom: lpass-cpu: Use optional clk APIs
This driver spits out a warning for me at boot: sc7180-lpass-cpu 62f00000.lpass: asoc_qcom_lpass_cpu_platform_probe() error getting optional null: -2 but it looks like it is all an optional clk. Use the optional clk APIs here so that we don't see this message and everything else is the same. Cc: Srinivas Kandagatla <[email protected]> Cc: Banajit Goswami <[email protected]> Fixes: 3e53ac8 ("ASoC: qcom: make osr clock optional") Signed-off-by: Stephen Boyd <[email protected]> Reviewed-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 833bc4c commit af27025

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

sound/soc/qcom/lpass-cpu.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -835,18 +835,8 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
835835
if (dai_id == LPASS_DP_RX)
836836
continue;
837837

838-
drvdata->mi2s_osr_clk[dai_id] = devm_clk_get(dev,
838+
drvdata->mi2s_osr_clk[dai_id] = devm_clk_get_optional(dev,
839839
variant->dai_osr_clk_names[i]);
840-
if (IS_ERR(drvdata->mi2s_osr_clk[dai_id])) {
841-
dev_warn(dev,
842-
"%s() error getting optional %s: %ld\n",
843-
__func__,
844-
variant->dai_osr_clk_names[i],
845-
PTR_ERR(drvdata->mi2s_osr_clk[dai_id]));
846-
847-
drvdata->mi2s_osr_clk[dai_id] = NULL;
848-
}
849-
850840
drvdata->mi2s_bit_clk[dai_id] = devm_clk_get(dev,
851841
variant->dai_bit_clk_names[i]);
852842
if (IS_ERR(drvdata->mi2s_bit_clk[dai_id])) {

0 commit comments

Comments
 (0)