summaryrefslogtreecommitdiffstats
path: root/sound/soc/mediatek/mt8183
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-05-12 16:12:47 +0100
committerMark Brown <broonie@kernel.org>2020-05-12 16:12:47 +0100
commit132a0eb0324025bb4691ee590996dbe302159298 (patch)
treee70fcc3c1294f36f184f17b46bd82131cf71b686 /sound/soc/mediatek/mt8183
parent66c705d07d784fb6b4622c6e47b6acae357472db (diff)
parent74fcfde748b26c68a8ab2791d9d73f698f7752d1 (diff)
downloadlinux-132a0eb0324025bb4691ee590996dbe302159298.tar.bz2
Merge branch 'for-5.7' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.8
Diffstat (limited to 'sound/soc/mediatek/mt8183')
-rw-r--r--sound/soc/mediatek/mt8183/mt8183-afe-pcm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c b/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
index c8ded53bde1d..e0c4714da92c 100644
--- a/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
+++ b/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
@@ -1186,10 +1186,9 @@ static int mt8183_afe_pcm_dev_probe(struct platform_device *pdev)
/* request irq */
irq_id = platform_get_irq(pdev, 0);
- if (!irq_id) {
- dev_err(dev, "%pOFn no irq found\n", dev->of_node);
- return -ENXIO;
- }
+ if (irq_id < 0)
+ return irq_id;
+
ret = devm_request_irq(dev, irq_id, mt8183_afe_irq_handler,
IRQF_TRIGGER_NONE, "asys-isr", (void *)afe);
if (ret) {