Re: [PATCH net-next 1/1] net: mdio: remove redundant fwnode cleanup
From: Andrew Lunn
Date: Tue Nov 25 2025 - 18:10:34 EST
On Mon, Nov 24, 2025 at 03:50:44PM +0100, Buday Csaba wrote:
> Remove redundant fwnode cleanup in of_mdiobus_register_device()
> and xpcs_plat_init_dev().
>
> mdio_device_free() eventually calls mdio_device_release(),
> which already performs fwnode_handle_put(), making the manual
> cleanup unnecessary.
>
> Combine fwnode_handle_get() with device_set_node() in
> of_mdiobus_register_device() for clarity.
>
> Signed-off-by: Buday Csaba <buday.csaba@xxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew