diff options
author | Johan Hovold <johan@kernel.org> | 2016-11-28 21:25:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-30 07:17:02 +0300 |
commit | 14cab6f6510c498c2fd55d4fd6063a91b477d2ff (patch) | |
tree | ca56ccbb9f3e290dccd565385aaef923ac7cf09a /net | |
parent | c41a47678d067efe8c87e8f1cfdcb0147e58ee62 (diff) | |
download | linux-14cab6f6510c498c2fd55d4fd6063a91b477d2ff.tar.xz |
net: ethernet: ti: davinci_emac: fix fixed-link phydev and of-node leaks
Make sure to deregister and free any fixed-link PHY registered using
of_phy_register_fixed_link() on probe errors and on driver unbind.
Also remember to put the of-node reference on probe errors.
Fixes: 1bb6aa56bb38 ("net: davinci_emac: Add support for fixed-link
PHY")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions