mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 10:31:33 -04:00
reset: rzg2l: use platform_device_set_of_node_from_dev()
Ahead of reworking the reference counting logic for platform devices, encapsulate the assignment of the OF node from another device for dynamically allocated platform devices with the provided helper. Acked-by: Philipp Zabel <p.zabel@pengutronix.de> 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-19-1ff028e33779@oss.qualcomm.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
16aa2d3847
commit
7a78fc2082
@@ -249,7 +249,7 @@ static int rzg2l_usbphy_ctrl_probe(struct platform_device *pdev)
|
||||
vdev->dev.parent = dev;
|
||||
priv->vdev = vdev;
|
||||
|
||||
device_set_of_node_from_dev(&vdev->dev, dev);
|
||||
platform_device_set_of_node_from_dev(vdev, dev);
|
||||
error = platform_device_add(vdev);
|
||||
if (error)
|
||||
goto err_device_put;
|
||||
|
||||
Reference in New Issue
Block a user