Re: [PATCH 2/2] pinctrl: sunxi: sun50i-h5 use platform_irq_count

From: Linus Walleij
Date: Tue Jan 07 2020 - 03:56:46 EST

On Wed, Dec 18, 2019 at 1:43 PM Peng Fan <> wrote:

> From: Peng Fan <>
> platform_irq_count() is the more generic way (independent of
> device trees) to determine the count of available interrupts. So
> use this instead.
> As platform_irq_count() might return an error code (which
> of_irq_count doesn't) some additional handling is necessary.
> Signed-off-by: Peng Fan <>

This is clearly nicer code, patch applied.
(You only need to reiterate patch 1/2 if you decide to
keep working on that.)

Linus Walleij