Commit 506f669c authored by Giuseppe CAVALLARO's avatar Giuseppe CAVALLARO Committed by David S. Miller

stmmac: fix the parsing of the eee_timer parameter

This pacth fixes the parsing of the eee_timer driver parameter.
Signed-off-by: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 462738f4
...@@ -2254,7 +2254,7 @@ static int __init stmmac_cmdline_opt(char *str) ...@@ -2254,7 +2254,7 @@ static int __init stmmac_cmdline_opt(char *str)
} else if (!strncmp(opt, "pause:", 6)) { } else if (!strncmp(opt, "pause:", 6)) {
if (kstrtoint(opt + 6, 0, &pause)) if (kstrtoint(opt + 6, 0, &pause))
goto err; goto err;
} else if (!strncmp(opt, "eee_timer:", 6)) { } else if (!strncmp(opt, "eee_timer:", 10)) {
if (kstrtoint(opt + 10, 0, &eee_timer)) if (kstrtoint(opt + 10, 0, &eee_timer))
goto err; goto err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment