net: mdio: thunder: Add missing fwnode_handle_put()
authorLiang He <windhl@126.com>
Wed, 22 Mar 2023 06:20:57 +0000 (14:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Mar 2023 08:46:55 +0000 (08:46 +0000)
commitb1de5c78ebe9858ccec9d49af2f76724f1d47e3e
tree52d1b7ecc0abd70c880ee9a0e9155579934ed72a
parentfb63d217e68f5040aec88b63c96355f32d522d01
net: mdio: thunder: Add missing fwnode_handle_put()

In device_for_each_child_node(), we should add fwnode_handle_put()
when break out of the iteration device_for_each_child_node()
as it will automatically increase and decrease the refcounter.

Fixes: 379d7ac7ca31 ("phy: mdio-thunder: Add driver for Cavium Thunder SoC MDIO buses.")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mdio/mdio-thunder.c