]> git.karo-electronics.de Git - linux-beck.git/commit
soc/fsl/qe: fix gpio save_regs functions
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 5 Sep 2016 22:52:16 +0000 (00:52 +0200)
committerScott Wood <oss@buserror.net>
Sun, 25 Sep 2016 07:38:56 +0000 (02:38 -0500)
commit5dc6f3fedee58efa343e822558fc3e2f0eb2ad1f
tree311a5cea4bc53318024961df3f3fbbb33e415fc9
parente627f8dc9a6fb8c9fff371ab99cc36b4f4116433
soc/fsl/qe: fix gpio save_regs functions

of_mm_gpiochip_add_data() calls mm_gc->save_regs() before
setting the data. Therefore ->save_regs() cannot use
gpiochip_get_data()

An Oops is encountered without this fix.

fixes: 1e714e54b5ca5 ("powerpc: qe_lib-gpio: use gpiochip data pointer")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Cc: <stable@vger.kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Scott Wood <oss@buserror.net>
drivers/soc/fsl/qe/gpio.c