Unverified Commit 0e59b31d authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Ilpo Järvinen
Browse files

platform/x86: pcengines-apuv2: attach software node to the gpiochip



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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: default avatarBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/aY-oAVI0TubcaD2K@google.com


Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent 85cd4fbf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;