# Re: \[PATCH 07/23\] driver core: platform: provide platform\_device\_set\_fwnode()

- From: Andy Shevchenko \<andriy.shevchenko@linux.intel.com\>
- Date: 2026-06-02 21:42:08 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/06/17080181
- Thread: https://ratatoskr.run/netdev/2026/05/17013086/t.md

```text
On Thu, May 21, 2026 at 10:36:30AM +0200, Bartosz Golaszewski wrote:
> Provide a helper function encapsulating the logic of assigning firmware
> nodes to platform devices created with platform_device_alloc(). Make the
> kerneldoc state that this is the proper interface for assigning firmware
> nodes to dynamically allocated platform devices. This will allow us to
> switch to counting the references of the device's firmware nodes in the
> future, not only the OF nodes.

But why different for of_node and fwnode to begin with?!

-- 
With Best Regards,
Andy Shevchenko



```
