]> Gentwo Git Trees - linux/.git/commit
net: mdio: remove redundant fwnode cleanup
authorBuday Csaba <buday.csaba@prolan.hu>
Mon, 24 Nov 2025 14:50:44 +0000 (15:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Nov 2025 02:45:37 +0000 (18:45 -0800)
commitce28e333d6286cd10a27c8f22d3ac2b758f5fa0c
tree0c2cda4dda4710c32714a8a4b06c1a72046efa71
parenta11e0d467da2dcbe3f199a0f94769ed333b88288
net: mdio: remove redundant fwnode cleanup

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@prolan.hu>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/00847693daa8f7c8ff5dfa19dd35fc712fa4e2b5.1763995734.git.buday.csaba@prolan.hu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/of_mdio.c
drivers/net/pcs/pcs-xpcs-plat.c