mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-29 08:05:39 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e766abbc51
commit
5963c8563d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user