]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: lynxpoint: Move hardware initialization to callback
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 9 Oct 2019 15:58:45 +0000 (18:58 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Oct 2019 23:18:57 +0000 (01:18 +0200)
commit5a46b631f3b25d32baa23d554349e75c06608cdf
treea545d2122da57371dbde20ae00ea6e938cfa8de3
parent870ca156fb2a79f910b2a0c3144a6f0229a3f148
gpio: lynxpoint: 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: e7755a8ad86d ("gpio: lynxpoint: 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-lynxpoint.c