Patchwork [(net.git)] stmmac: fix the parsing of the eee_timer parameter

login
register
mail settings
Submitter Giuseppe CAVALLARO
Date Feb. 15, 2013, 9 a.m.
Message ID <1360918813-25805-1-git-send-email-peppe.cavallaro@st.com>
Download mbox | patch
Permalink /patch/220690/
State Accepted
Delegated to: David Miller
Headers show

Comments

Giuseppe CAVALLARO - Feb. 15, 2013, 9 a.m.
This pacth fixes the parsing of the eee_timer driver parameter.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
David Miller - Feb. 15, 2013, 8:34 p.m.
From: Giuseppe CAVALLARO <peppe.cavallaro@st.com>
Date: Fri, 15 Feb 2013 10:00:13 +0100

> This pacth fixes the parsing of the eee_timer driver parameter.
> 
> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index b75f4b2..601dd84 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -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;
 		}