]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: intel-mid: Move hardware initialization to callback
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 9 Oct 2019 15:23:27 +0000 (18:23 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Oct 2019 23:18:51 +0000 (01:18 +0200)
commit5e33666811e7c9a35c2ca912467a81a45e1f93eb
tree07b41780fafec9227bbdc5147751ad63c91b9475
parent61844a89b2a202bcd575b51625cc712e76dd41e2
gpio: intel-mid: Move hardware initialization to callback

The driver wants to initialize related registers before IRQ chip will be added.
That's why move it to a corresponding callback. It also fixes the NULL pointer
dereference.

Fixes: e6f1102d86d1 ("gpio: intel-mid: Pass irqchip when adding gpiochip")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-intel-mid.c