[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1339612907.13326.5.camel@lorien2>
Date: Wed, 13 Jun 2012 12:41:47 -0600
From: Shuah Khan <shuahkhan@...il.com>
To: tglx@...utronix.de, hpa@...or.com, mingo@...hat.com
Cc: shuahkhan@...il.com, x86@...nel.org,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] x86: kernel/cpu/mtrr/cleanup.c simple_strtoul cleanup
Change parse_mtrr_spare_reg() to call kstrtoul() instead of calling obsoleted
simple_strtoul().
Signed-off-by: Shuah Khan <shuahkhan@...il.com>
---
arch/x86/kernel/cpu/mtrr/cleanup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/mtrr/cleanup.c b/arch/x86/kernel/cpu/mtrr/cleanup.c
index ac140c7..601aa4e 100644
--- a/arch/x86/kernel/cpu/mtrr/cleanup.c
+++ b/arch/x86/kernel/cpu/mtrr/cleanup.c
@@ -465,7 +465,7 @@ static unsigned long nr_mtrr_spare_reg __initdata =
static int __init parse_mtrr_spare_reg(char *arg)
{
if (arg)
- nr_mtrr_spare_reg = simple_strtoul(arg, NULL, 0);
+ kstrtoul(arg, 0, &nr_mtrr_spare_reg);
return 0;
}
early_param("mtrr_spare_reg_nr", parse_mtrr_spare_reg);
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists