stmmac: fix a bug while checking the HW cap reg (v2)
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Wed, 26 Oct 2011 19:43:07 +0000 (19:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Oct 2011 03:17:11 +0000 (23:17 -0400)
commit5e6efe88c54ad79353666f5371b5b97c0e16111e
tree4e6af2da84ec10be1cf8fb033a3627e222b5a9fe
parente3a7ae2c1819aa210a38f80f6bf13322652c8211
stmmac: fix a bug while checking the HW cap reg (v2)

The patch fixes a bug while checking the HW cap reg
on old MAC10/100 where this feature is not available.

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