Files
linux/drivers
Johnson CH Chen (陳昭勳) 7c2c4e7a19 gpio: mpc8xxx: Add platform device to gpiochip->parent
[ Upstream commit 322f6a3182 ]

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>
2023-05-15 16:34:37 +09:00
..
2023-05-12 16:27:16 +09:00
2023-05-15 16:19:29 +09:00
2023-05-15 10:39:04 +09:00
2023-05-15 12:46:28 +09:00
2018-05-25 17:06:35 +02:00
2023-05-15 16:08:22 +09:00
2023-05-15 10:37:00 +09:00
2023-05-15 09:23:01 +09:00
2023-05-15 09:51:46 +09:00
2023-05-15 08:28:33 +09:00
2023-05-15 16:16:44 +09:00
2023-05-15 13:00:07 +09:00