]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
platform/x86: pcengines-apuv2: attach software node to the gpiochip
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 13 Feb 2026 22:40:32 +0000 (14:40 -0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 2 Mar 2026 16:27:22 +0000 (18:27 +0200)
GPIO subsystem is switching the way it locates GPIO chip instances for
GPIO references in software nodes from matching on node names to
identity matching, which necessitates assigning firmware nodes
(software nodes) to GPIO chips.

Attach apu2_gpiochip_node to the platform device representing the GPIO
controller.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/aY-oAVI0TubcaD2K@google.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/pcengines-apuv2.c

index 3b086863c6ac9fd59f602e43304ad368f6a0e9df..3f19589d1ba032d8360a56a6f8efef14c8e87049 100644 (file)
@@ -294,7 +294,8 @@ static int __init apu_board_init(void)
        }
 
        apu_gpio_pdev = apu_create_pdev(AMD_FCH_GPIO_DRIVER_NAME,
-                                       id->driver_data, sizeof(struct amd_fch_gpio_pdata), NULL);
+                                       id->driver_data, sizeof(struct amd_fch_gpio_pdata),
+                                       &apu2_gpiochip_node);
        err = PTR_ERR_OR_ZERO(apu_gpio_pdev);
        if (err)
                goto err_unregister_swnodes;