[PATCH] ASoC: dwc: Get IRQ optionally
Andy Shevchenko
andy.shevchenko at gmail.com
Fri Aug 27 10:08:38 CEST 2021
On Wed, Aug 25, 2021 at 7:04 PM Robin Murphy <robin.murphy at 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
More information about the Alsa-devel
mailing list