OSDN Git Service

gpio: mpc8xxx: Do not use gpiochip_get_data() in mpc8xxx_gpio_save_regs()
authorGuenter Roeck <linux@roeck-us.net>
Thu, 7 Jan 2016 16:25:24 +0000 (08:25 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 13 Jan 2016 09:22:23 +0000 (10:22 +0100)
commit78179989a06636d8362e2eee01b261d02b1500d2
treeb87d723e5bf723ca42e45fcb2a7be752464b06e9
parent95c761705ef5c2f094c56c4b779e74958246f2aa
gpio: mpc8xxx: Do not use gpiochip_get_data() in mpc8xxx_gpio_save_regs()

Commit 709d71a17c33 ("gpio: mpc8xxx: use gpiochip data pointer") replaces
the use of container_of() with gpiochip_get_data(). However, the data
pointer is not yet set by the time the save_regs function is called.

Fixes: 709d71a17c33 ("gpio: mpc8xxx: use gpiochip data pointer")
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mpc8xxx.c