net: ethernet: ti: cpsw: fix mdio device reference leak
authorJohan Hovold <johan@kernel.org>
Thu, 17 Nov 2016 16:39:59 +0000 (17:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2016 18:48:52 +0000 (13:48 -0500)
commit86e1d5adcef961eb383ce4eacbe0ef22f06e2045
treea995380c52aca1023423157f0901bb36331213bc
parentc46ab7e08c79be7400f6d59edbc6f26a91941c5a
net: ethernet: ti: cpsw: fix mdio device reference leak

Make sure to drop the reference taken by of_find_device_by_node() when
looking up an mdio device from a phy_id property during probe.

Fixes: 549985ee9c72 ("cpsw: simplify the setup of the register
pointers")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c