]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-rk: Fix clk rate when provided by soc
authorHeiko Stübner <heiko@sntech.de>
Sun, 21 Jun 2015 19:52:52 +0000 (21:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2015 13:49:24 +0000 (06:49 -0700)
commitc4fdaa354814d8c070d5cedd189e42536ebec628
treeda1b29cf76314a9cc9a0163040c1cef4bd577e03
parentfcc1ee88f0490276b11d07b923811a49c176127a
net: stmmac: dwmac-rk: Fix clk rate when provided by soc

The first iteration of the dwmac-rk support did access an intermediate
clock directly below the pll selector. This was removed in a subsequent
revision, but the clock and one invocation remained. This results in
the driver trying to set the rate of a non-existent clock when the soc
and not some external source provides the phy clock for RMII phys.

So set the rate of the correct clock and remove the remaining now
completely unused definition.

Fixes: 436f5ae08f9d ("GMAC: add driver for Rockchip RK3288 SoCs integrated GMAC")
Cc: stable@vger.kernel.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c