Skip to contentSkip to conversation

powerpc/85xx: register gpio-keys devices for of_platform

PATCH New Rosen Penev 1 participant 1 message Jul 17

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/85xx: register gpio-keys devices for of_platform

Add the "gpio-keys" compatible to mpc85xx_common_ids so that gpio-keys devices described in the device tree are probed as platform devices, matching the existing gpio-leds entry.

Assisted-by opencode:hy3-free
---
 arch/powerpc/platforms/85xx/common.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/platforms/85xx/common.c +1 -0
index c11deb2f50ed..50ee5f2550fa 100644
@@ -31,6 +31,7 @@ static const struct of_device_id mpc85xx_common_ids[] __initconst = {
 	{ .compatible = "fsl,mpc8548-guts", },
 	/* Probably unnecessary? */
 	{ .compatible = "gpio-leds", },
+	{ .compatible = "gpio-keys", },
 	/* For all PCI controllers */
 	{ .compatible = "fsl,mpc8540-pci", },
 	{ .compatible = "fsl,mpc8548-pcie", },
Signature · 1 line
2.55.0