diff options
author | Rohit kumar <rohitkr@codeaurora.org> | 2020-08-14 12:53:06 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-08-17 15:39:32 +0200 |
commit | 93dbbd657167a796583506834cc03950ce25bce1 (patch) | |
tree | 361cbfb475ca2c5561389ce266e340757c9d59d7 /sound/soc/qcom/lpass-cpu.c | |
parent | ASoC: qcom: lpass-sc7180: Add platform driver for lpass audio (diff) | |
download | linux-93dbbd657167a796583506834cc03950ce25bce1.tar.xz linux-93dbbd657167a796583506834cc03950ce25bce1.zip |
ASoC: qcom: lpass-cpu: Use platform_get_resource
platform_get_resource_byname() is used when there
is list of reg entries. As lpass-cpu node has only
one reg entry, use platform_get_resource() instead.
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/1597402388-14112-11-git-send-email-rohitkr@codeaurora.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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index 5d84f63261a1..1ee6d8b3f550 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c @@ -575,7 +575,7 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev) of_lpass_cpu_parse_dai_data(dev, drvdata); - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lpass-lpaif"); + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); drvdata->lpaif = devm_ioremap_resource(dev, res); if (IS_ERR((void const __force *)drvdata->lpaif)) { |