mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
ARM: pxa: pxa25x: attach software node to its target GPIO controller
Software node describing the GPIO controller for the pxa25x platforms is currently "dangling" - it's not actually attached to the relevant controller and doesn't allow real fwnode lookup. Attach it once it's registered as a firmware node before adding the platform device. Reviewed-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20260430-pxa-gpio-swnodes-v3-3-5142e95f0eca@oss.qualcomm.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
This commit is contained in:
parent
a25463c14d
commit
af3fb0aeb7
|
|
@ -240,6 +240,9 @@ static int __init pxa25x_init(void)
|
|||
|
||||
if (!of_have_populated_dt()) {
|
||||
software_node_register(&pxa2xx_gpiochip_node);
|
||||
pxa25x_device_gpio.dev.fwnode = software_node_fwnode(
|
||||
&pxa2xx_gpiochip_node);
|
||||
|
||||
pxa2xx_set_dmac_info(&pxa25x_dma_pdata);
|
||||
ret = platform_add_devices(pxa25x_devices,
|
||||
ARRAY_SIZE(pxa25x_devices));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user