Skip to content

Commit 2fd276c

Browse files
rmurphy-armbroonie
authored andcommitted
ASoC: dwc: Get IRQ optionally
The IRQ is explicitly optional, so use platform_get_irq_optional() and avoid platform_get_irq() logging a spurious error when trying to use the thing in DMA mode. Signed-off-by: Robin Murphy <[email protected]> Link: https://lore.kernel.org/r/c857f334e3c9e651e088b675b3938cb5f798b133.1629906123.git.robin.murphy@arm.com Signed-off-by: Mark Brown <[email protected]>
1 parent a8946f0 commit 2fd276c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/dwc/dwc-i2s.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ static int dw_i2s_probe(struct platform_device *pdev)
642642

643643
dev->dev = &pdev->dev;
644644

645-
irq = platform_get_irq(pdev, 0);
645+
irq = platform_get_irq_optional(pdev, 0);
646646
if (irq >= 0) {
647647
ret = devm_request_irq(&pdev->dev, irq, i2s_irq_handler, 0,
648648
pdev->name, dev);

0 commit comments

Comments
 (0)