Andy Shevchenko 9411e3aaa6 gpiolib: Initialize the hardware with a callback
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@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2019-10-15 01:18:46 +02:00
..
2019-09-17 19:31:36 -07:00
2019-09-22 09:30:30 -07:00
2019-09-21 10:26:24 -07:00
2019-09-21 10:50:15 -07:00
2019-09-18 11:14:31 -07:00
2019-09-10 13:03:08 +02:00
2019-10-12 15:42:19 -07:00
2019-10-04 11:13:09 -07:00
2019-09-23 19:37:49 -07:00