Skip to content

Commit 4049a3b

Browse files
V Sujith Kumar Reddybroonie
authored andcommitted
Asoc:qcom:lpass-cpu:Update dts property read API
Update dts property read API call with platform get property by name, as it make code more readable and avoid conflicts when array of properties to be used. Signed-off-by: V Sujith Kumar Reddy <[email protected]> Reviewed-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Srinivasa Rao <[email protected]> Tested-by: Srinivas Kandagatla <[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 8e3fdc5 commit 4049a3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sound/soc/qcom/lpass-cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
575575

576576
of_lpass_cpu_parse_dai_data(dev, drvdata);
577577

578-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
578+
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lpass-lpaif");
579579

580580
drvdata->lpaif = devm_ioremap_resource(dev, res);
581581
if (IS_ERR((void const __force *)drvdata->lpaif)) {

sound/soc/qcom/lpass-platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ int asoc_qcom_lpass_platform_register(struct platform_device *pdev)
621621
struct lpass_variant *v = drvdata->variant;
622622
int ret;
623623

624-
drvdata->lpaif_irq = platform_get_irq(pdev, 0);
624+
drvdata->lpaif_irq = platform_get_irq_byname(pdev, "lpass-irq-lpaif");
625625
if (drvdata->lpaif_irq < 0)
626626
return -ENODEV;
627627

0 commit comments

Comments
 (0)