Re: [PATCH 2/2] serial: stm32: update interrupt initialization

From: Andy Shevchenko
Date: Wed Feb 28 2018 - 10:41:24 EST


On Wed, Feb 28, 2018 at 5:40 PM, Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
> On Wed, Feb 28, 2018 at 12:51 PM, Bich HEMON <bich.hemon@xxxxxx> wrote:

>> - port->irq = platform_get_irq(pdev, 0);
>> - stm32port->wakeirq = platform_get_irq(pdev, 1);

>> + stm32port->wakeirq = platform_get_irq_byname(pdev, "wakeup");
>
> But this one is redundant since Tony's patch:
> https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=bleeding-edge&id=da997b22c40473b7db60bde6ea188d35565d10c8

Oh, it'a bout getting a resource by name...

Sorry, discard my previous comment.


--
With Best Regards,
Andy Shevchenko