# Re: \[PATCH v2 09/19\] net: bcmgenet: use platform\_device\_set\_of\_node()

- From: Jakub Kicinski \<kuba@kernel.org\>
- Date: 2026-06-29 23:15:23 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/06/17190527
- Thread: https://ratatoskr.run/netdev/2026/06/17186875/t.md

```text
On Mon, 29 Jun 2026 11:12:32 +0200 Bartosz Golaszewski wrote:
> +	if (dn) {
> +		struct device_node *np __free(device_node) = bcmgenet_mii_of_find_mdio(priv);
> +
> +		platform_device_set_of_node(ppdev, np);
> +	} else {

Please don't blindly use __free() in cases where it's clearly
unnecessary.

```
