Re: [PATCH] ASoC: dwc: Get IRQ optionally

From: Andy Shevchenko
Date: Fri Aug 27 2021 - 04:09:21 EST


On Wed, Aug 25, 2021 at 7:04 PM Robin Murphy <robin.murphy@xxxxxxx> 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