stmmac: fix the parsing of the eee_timer parameter
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Thu, 14 Feb 2013 23:00:13 +0000 (23:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Feb 2013 20:34:37 +0000 (15:34 -0500)
This pacth fixes the parsing of the eee_timer driver parameter.

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

index b75f4b286895021fd587b880a66c17aa4251780b..601dd8452b0044e5c0a263a94b31a285430991e7 100644 (file)
@@ -2254,7 +2254,7 @@ static int __init stmmac_cmdline_opt(char *str)
                } else if (!strncmp(opt, "pause:", 6)) {
                        if (kstrtoint(opt + 6, 0, &pause))
                                goto err;
-               } else if (!strncmp(opt, "eee_timer:", 6)) {
+               } else if (!strncmp(opt, "eee_timer:", 10)) {
                        if (kstrtoint(opt + 10, 0, &eee_timer))
                                goto err;
                }