diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2022-06-28 13:04:34 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-28 13:18:30 +0100 |
commit | 2a2ef688b1b03eea3a5b020d9bef50d015f619be (patch) | |
tree | fe57a2aae81ce559729ff372420a6b8ef2a7887e /sound/soc/qcom/lpass-cpu.c | |
parent | Add PDM/DSD/dataline configuration support (diff) | |
download | wireguard-linux-2a2ef688b1b03eea3a5b020d9bef50d015f619be.tar.xz wireguard-linux-2a2ef688b1b03eea3a5b020d9bef50d015f619be.zip |
ASoC: qcom: lpass: Fix apq8016 compat string to match yaml
The documented yaml compat string for the apq8016 is
"qcom,apq8016-lpass-cpu" not "qcom,lpass-cpu-apq8016". Looking at the other
lpass compat strings the general form is "qcom,socnum-lpass-cpu".
We need to fix both the driver and dts to match.
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20220628120435.3044939-2-bryan.odonoghue@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/lpass-cpu.c')
-rw-r--r-- | sound/soc/qcom/lpass-cpu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index e6846ad2b5fa..53f9bf6581d3 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c @@ -1102,6 +1102,11 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev) if (!match || !match->data) return -EINVAL; + if (of_device_is_compatible(dev->of_node, "qcom,lpass-cpu-apq8016")) { + dev_warn(dev, "%s compatible is deprecated\n", + match->compatible); + } + drvdata->variant = (struct lpass_variant *)match->data; variant = drvdata->variant; |