mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 03:27:30 -04:00
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 <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>
This commit is contained in:
committed by
Ilpo Järvinen
parent
49133d4ae0
commit
fa84425e53
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user