On Wed, Oct 9, 2019 at 6:51 PM Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > After changing the drivers to use GPIO core to add an IRQ chip > it appears that some of them requires a hardware initialization > before adding the IRQ chip. > > Add an optional callback ->init_hw() to allow that drivers > to initialize hardware if needed. > > This change is a part of the fix NULL pointer dereference > brought to the several drivers recently. > > Cc: Hans de Goede <hdegoede@xxxxxxxxxx> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Ouch! But a very nice fix. I will pull in the series. Thanks for fixing this up so nicely Andy! Yours, Linus Walleij