net: phy: fixed_phy: fix of_node leak in fixed_phy_unregister
authorJohan Hovold <johan@kernel.org>
Wed, 16 Nov 2016 14:20:38 +0000 (15:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Nov 2016 17:05:05 +0000 (12:05 -0500)
commit13c9d934a5a1d04f055c20c2253090e9afd9a5d1
tree381af7ec4c3b40e0955f9cb8fcf42f3a7a1eb0d5
parent3ae30f4ce65e9d4de274b1472169ab3c27f5c666
net: phy: fixed_phy: fix of_node leak in fixed_phy_unregister

Make sure to drop the of_node reference taken in fixed_phy_register()
when deregistering a PHY.

Fixes: a75951217472 ("net: phy: extend fixed driver with
fixed_phy_register()")

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed_phy.c