summaryrefslogtreecommitdiffstats
path: root/sound/soc/amd/raven/acp3x-pcm-dma.c
diff options
context:
space:
mode:
authorMeng Tang <tangmeng@uniontech.com>2022-02-27 06:09:28 +0100
committerMark Brown <broonie@kernel.org>2022-02-28 14:33:35 +0100
commit87d71a12877114b4ad60ce5b93482505bac88d6e (patch)
tree546e34af958a39e240ff4412460e50e9c202cd0d /sound/soc/amd/raven/acp3x-pcm-dma.c
parentASoC: tscs454: Use modern ASoC DAI format terminology (diff)
downloadlinux-87d71a12877114b4ad60ce5b93482505bac88d6e.tar.xz
linux-87d71a12877114b4ad60ce5b93482505bac88d6e.zip
ASoC: amd: pcm-dma: Use platform_get_irq() to get the interrupt
platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static allocation of IRQ resources in DT core code, this causes an issue when using hierarchical interrupt domains using "interrupts" property in the node as this bypassed the hierarchical setup and messed up the irq chaining. In preparation for removal of static setup of IRQ resource from DT core code use platform_get_irq(). Signed-off-by: Meng Tang <tangmeng@uniontech.com> Link: https://lore.kernel.org/r/20220227050928.32270-1-tangmeng@uniontech.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/raven/acp3x-pcm-dma.c')
-rw-r--r--sound/soc/amd/raven/acp3x-pcm-dma.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c
index 75c06697fa09..e4f8dbf0d11d 100644
--- a/sound/soc/amd/raven/acp3x-pcm-dma.c
+++ b/sound/soc/amd/raven/acp3x-pcm-dma.c
@@ -394,13 +394,9 @@ static int acp3x_audio_probe(struct platform_device *pdev)
if (!adata->acp3x_base)
return -ENOMEM;
- res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
- if (!res) {
- dev_err(&pdev->dev, "IORESOURCE_IRQ FAILED\n");
+ adata->i2s_irq = platform_get_irq(pdev, 0);
+ if (adata->i2s_irq < 0)
return -ENODEV;
- }
-
- adata->i2s_irq = res->start;
dev_set_drvdata(&pdev->dev, adata);
status = devm_snd_soc_register_component(&pdev->dev,