]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86: pcengines-apuv2: reduce indiraction in swnode assignment
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Wed, 29 Apr 2026 09:46:01 +0000 (11:46 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 8 May 2026 15:49:42 +0000 (18:49 +0300)
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 <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://patch.msgid.link/20260429-pcengines-apuv2-swnodes-v1-1-cd1a6fad856d@oss.qualcomm.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/pcengines-apuv2.c

index 3f19589d1ba032d8360a56a6f8efef14c8e87049..8ac5f719c5a39b3511d7f4e4d752adc9d99eabfc 100644 (file)
@@ -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;