Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 688d1b8c authored by Dmitry Mastykin's avatar Dmitry Mastykin Committed by Greg Kroah-Hartman
Browse files

pinctrl: mcp23s08: fix irq setup order



commit 02e389e63e3523828fc3832f27e0341885f60f6f upstream.

When using mcp23s08 module with gpio-keys, often (50% of boots)
it fails to get irq numbers with message:
"gpio-keys keys: Unable to get irq number for GPIO 0, error -6".
Seems that irqs must be setup before devm_gpiochip_add_data().

Signed-off-by: default avatarDmitry Mastykin <mastichi@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 05c9297f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment