net: stmmac: Fix clock en-/disable calls
authorStefan Roese <sr@denx.de>
Thu, 7 Jun 2012 23:21:05 +0000 (23:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jun 2012 23:48:15 +0000 (16:48 -0700)
commit883ffd6e64114495f68652721065149a2bbd9de6
tree85efc6c8d88d313f4d2a06afea427c9d3fe9e6e6
parent3f16da51b0e533871d22a29682f3c3969d4f7e22
net: stmmac: Fix clock en-/disable calls

clk_{un}prepare is mandatory for platforms using common clock framework.
Since these drivers are used by SPEAr platform, which supports common
clock framework, add clk_{un}prepare() support for them. Otherwise
the clocks are not correctly en-/disabled and ethernet support doesn't
work.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Viresh Kumar <viresh.linux@gmail.com>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac.h