Re: [PATCH 22/23] reset: rzg2l: use platform_device_set_of_node_from_dev()
From: Andy Shevchenko
Date: Tue Jun 02 2026 - 18:00:14 EST
On Tue, Jun 02, 2026 at 10:24:41AM +0200, Philipp Zabel wrote:
> On Do, 2026-05-21 at 10:36 +0200, Bartosz Golaszewski wrote:
> > 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.
...
> > - device_set_of_node_from_dev(&vdev->dev, dev);
> > + platform_device_set_of_node_from_dev(vdev, dev);
Same Q here, why it uses inherited call? Cargo cult?
'reused' flag is solely pin control (provider!) thingy as far as I remember.
--
With Best Regards,
Andy Shevchenko