stmmac: do not fail when probe and there is no csr clk defined
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Wed, 18 Apr 2012 19:48:22 +0000 (19:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Apr 2012 00:09:06 +0000 (20:09 -0400)
commit31ea38eefea0a8b40d1ef65842ed66847b13979f
treece41d4f60486e6ce752888e73540386f9488a073
parent0f1f88a875bd6c6725501183fabeb99a70c35757
stmmac: do not fail when probe and there is no csr clk defined

On some platforms, for example where we are doing the bring-up,
the csr clock is not passed from the framework and the Ethernet
device driver is failing when it can work w/o any issues and
using the default values. So this patch just warnings the case
of the csr clock cannot be acquired but w/o failing the probe
step. I have just tested it on ST STiH415 SoC (ARM).

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c