]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: merrifield: 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:19:01 +0000 (01:19 +0200)
commiteee37faccd3c78ad0eba77053c840c0b29c4c256
tree12983dc6c97c0b06fc11d4d1cf828b3380df2965
parent45aff1844bc95b826d1192b0523ff1958a7e9d20
gpio: merrifield: 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: 130780a50931 ("gpio: merrifield: 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-merrifield.c