gpio: stmpe: Move chip registration
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Jul 2020 07:27:06 +0000 (09:27 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Aug 2020 23:07:23 +0000 (01:07 +0200)
commitbeb3fb41659a3cff2121f126a83fd7167b601a63
treedb2512c06aaa13a3fac5f7d9fc49e21aeedfa77d
parentb470cef1ffac1acc327fe3343a2ce3ef3a526a21
gpio: stmpe: Move chip registration

Make sure to register the GPIO chip after requesting the
interrupt and setting up the IRQ members of the irqchip.

Fixes: 9745079609df ("gpio: stmpe: Use irqchip template")
Reported-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Patrice Chotard <patrice.chotard@st.com>
Link: https://lore.kernel.org/r/20200728072706.348725-1-linus.walleij@linaro.org
drivers/gpio/gpio-stmpe.c