mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 21:04:14 +00:00
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: 1e714e54b5 ("powerpc: qe_lib-gpio: use gpiochip data pointer")
Signed-off-by: Christophe Leroy <[email protected]>
Cc: <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Scott Wood <[email protected]>