diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-07-06 14:44:28 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-10 16:07:09 +0200 |
| commit | 5963c8563d07bdb7b80226d5d3e57d68d7641b53 (patch) | |
| tree | 01725310a01a7e42dcc597fac3369606021f5334 /drivers/platform | |
| parent | e766abbc5191b444176c3b26713e7ac2f412b351 (diff) | |
| download | linux-next-5963c8563d07bdb7b80226d5d3e57d68d7641b53.tar.gz linux-next-5963c8563d07bdb7b80226d5d3e57d68d7641b53.zip | |
platform/surface: gpe: use platform_device_set_fwnode()
Ahead of reworking the reference counting logic for platform devices,
encapsulate the assignment of the firmware node for dynamically allocated
platform devices with the provided helper.
Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260706-pdev-fwnode-ref-v3-16-1ff028e33779@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform')
| -rw-r--r-- | drivers/platform/surface/surface_gpe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/surface/surface_gpe.c b/drivers/platform/surface/surface_gpe.c index b359413903b1..40896a8544b0 100644 --- a/drivers/platform/surface/surface_gpe.c +++ b/drivers/platform/surface/surface_gpe.c @@ -317,7 +317,7 @@ static int __init surface_gpe_init(void) goto err_alloc; } - pdev->dev.fwnode = fwnode; + platform_device_set_fwnode(pdev, fwnode); status = platform_device_add(pdev); if (status) |
