diff options
author | Timur Tabi <timur@codeaurora.org> | 2017-01-11 16:45:51 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-12 15:13:18 -0500 |
commit | 994c5483e7f6dbf9fea622ba2031b9d868feb4b9 (patch) | |
tree | 4fd095c82f487d1939d8201945e4334e4bdc3796 /net | |
parent | ea7a80858f57d8878b1499ea0f1b8a635cc48de7 (diff) | |
download | op-kernel-dev-994c5483e7f6dbf9fea622ba2031b9d868feb4b9.zip op-kernel-dev-994c5483e7f6dbf9fea622ba2031b9d868feb4b9.tar.gz |
net: qcom/emac: grab a reference to the phydev on ACPI systems
Commit 6ffe1c4cd0a7 ("net: qcom/emac: fix of_node and phydev leaks")
fixed the problem with reference leaks on phydev, but the fix is
device-tree specific. When the driver unloads, the reference is
dropped only on DT systems.
Instead, it's cleaner if up grab an reference on ACPI systems.
When the driver unloads, we can drop the reference without having
to check whether we're on a DT system.
Signed-off-by: Timur Tabi <timur@codeaurora.org>
Reviewed-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