Re: [PATCH 1/9] pinctrl: qcom: ssbi-gpio: hardcode IRQ counts

From: Linus Walleij
Date: Wed Feb 06 2019 - 07:01:33 EST


Hi Brian!

I found a second bug in this patch:

On Fri, Jan 25, 2019 at 5:23 PM Brian Masney <masneyb@xxxxxxxxxxxxx> wrote:

> - npins = platform_irq_count(pdev);
(...)
> - pctrl->npins = npins;

Do not lose this assignment of pctrl->npins.

pctrl->npins is used further down in the code and the gpiochip
does not probe because of zero pins. You could
get rid of the local variable npins and just use pctrl->npins
everywhere though.

Yours,
Linus Walleij