# Re: \[PATCH 08/23\] driver core: platform: provide platform\_device\_set\_of\_node\_from\_dev()

- From: Johan Hovold \<johan@kernel.org\>
- Date: 2026-06-05 12:16:24 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/06/17093530
- Thread: https://ratatoskr.run/netdev/2026/05/17013086/t.md

```text
On Wed, Jun 03, 2026 at 12:44:55AM +0300, Andy Shevchenko wrote:
> On Thu, May 21, 2026 at 10:36:31AM +0200, Bartosz Golaszewski wrote:
> > Provide a platform-specific variant of device_set_of_node_from_dev(). In
> > addition to bumping the reference count of the OF node being assigned,
> > it also assigns the fwnode of the platform device.
> 
> Can we rather investigate the way how to make that of node reuse thingy
> (which is used solely by pin control) differently and then drop this confusing
> device_set_of_node_from_dev() call altogether?

No, that call is needed. See commit 4e75e1d7dac9 ("driver core: add
helper to reuse a device-tree node") for details.

Johan
```
