linux/drivers/net/ethernet/qualcomm/emac
Timur Tabi 994c5483e7 net: qcom/emac: grab a reference to the phydev on ACPI systems
Commit 6ffe1c4cd0 ("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>
2017-01-12 15:13:18 -05:00
..
Makefile net: qcom/emac: add support for the Qualcomm Technologies QDF2400 2016-12-09 22:11:02 -05:00
emac-mac.c net: qcom/emac: enable flow control if requested 2016-11-09 18:45:24 -05:00
emac-mac.h
emac-phy.c net: qcom/emac: grab a reference to the phydev on ACPI systems 2017-01-12 15:13:18 -05:00
emac-phy.h
emac-sgmii-fsm9900.c net: qcom/emac: move phy init code to separate files 2016-12-09 22:11:02 -05:00
emac-sgmii-qdf2400.c net: qcom/emac: add support for the Qualcomm Technologies QDF2400 2016-12-09 22:11:02 -05:00
emac-sgmii-qdf2432.c net: qcom/emac: move phy init code to separate files 2016-12-09 22:11:02 -05:00
emac-sgmii.c net: qcom/emac: add support for the Qualcomm Technologies QDF2400 2016-12-09 22:11:02 -05:00
emac-sgmii.h net: qcom/emac: add support for the Qualcomm Technologies QDF2400 2016-12-09 22:11:02 -05:00
emac.c net: qcom/emac: grab a reference to the phydev on ACPI systems 2017-01-12 15:13:18 -05:00
emac.h