Johnson CH Chen (陳昭勳) 749b39e7c6 gpio: mpc8xxx: Add platform device to gpiochip->parent
[ Upstream commit 322f6a3182d42df18059a89c53b09d33919f755e ]

Dear Linus Walleij,

In old kernels, some APIs still try to use parent->of_node from struct gpio_chip,
and it could be resulted in kernel panic because parent is NULL. Adding platform
device to gpiochip->parent can fix this problem.

Signed-off-by: Johnson Chen <johnsonch.chen@moxa.com>
Link: https://patchwork.kernel.org/patch/11234609
Link: https://lore.kernel.org/r/HK0PR01MB3521489269F76467DFD7843FFA450@HK0PR01MB3521.apcprd01.prod.exchangelabs.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-17 19:45:53 +01:00
..
2017-08-14 15:01:13 +02:00
2017-05-22 17:18:19 +02:00
2017-03-16 21:52:10 +01:00
2017-08-23 09:21:54 +02:00
2019-06-22 08:16:16 +02:00