From: Bartosz Golaszewski Date: Wed, 29 Apr 2026 09:46:01 +0000 (+0200) Subject: platform/x86: pcengines-apuv2: reduce indiraction in swnode assignment X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=fa84425e53c43c8a17ac2af2c8f99202f4e1ee7e;p=thirdparty%2Fkernel%2Flinux.git platform/x86: pcengines-apuv2: reduce indiraction in swnode assignment struct platform_device_info now has the 'swnode' field allowing passing software nodes directly to platform_device_register_full() without going through software_node_fwnode(). It supports both registered and unregistered software nodes. Use it to drop one layer of indirection. Signed-off-by: Bartosz Golaszewski Reviewed-by: Dmitry Torokhov Link: https://patch.msgid.link/20260429-pcengines-apuv2-swnodes-v1-1-cd1a6fad856d@oss.qualcomm.com Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen --- diff --git a/drivers/platform/x86/pcengines-apuv2.c b/drivers/platform/x86/pcengines-apuv2.c index 3f19589d1ba03..8ac5f719c5a39 100644 --- a/drivers/platform/x86/pcengines-apuv2.c +++ b/drivers/platform/x86/pcengines-apuv2.c @@ -262,7 +262,7 @@ static struct platform_device * __init apu_create_pdev(const char *name, .id = PLATFORM_DEVID_NONE, .data = data, .size_data = size, - .fwnode = software_node_fwnode(swnode), + .swnode = swnode, }; struct platform_device *pdev; int err;