27 Aug
2021
27 Aug
'21
10:08 a.m.
On Wed, Aug 25, 2021 at 7:04 PM Robin Murphy robin.murphy@arm.com wrote:
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.
...
irq = platform_get_irq(pdev, 0);
irq = platform_get_irq_optional(pdev, 0);
if (irq >= 0) {
It has to be changed to if (irq > 0). But since it's already applied, I think it will be another patch.
ret = devm_request_irq(&pdev->dev, irq, i2s_irq_handler, 0, pdev->name, dev);
--
With Best Regards,
Andy Shevchenko