]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: stmmac: Balance PTP reference clock enable/disable
authorThierry Reding <treding@nvidia.com>
Fri, 10 Mar 2017 16:34:56 +0000 (17:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:35:20 +0000 (23:35 -0700)
commit0ad2be79f254965f277fabdd7c64512527208f64
tree2e8427586e0f42cf20e96f8cb4ebad79b9043aaa
parentc66f6c3775bed342693feec2925276fd13bb1355
net: stmmac: Balance PTP reference clock enable/disable

clk_prepare_enable() and clk_disable_unprepare() for this clock aren't
properly balanced, which can trigger a WARN_ON() in the common clock
framework.

Reviewed-By: Joao Pinto <jpinto@synopsys.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c