* Remove the use of obsolete simple_strtoul & use kstrtoul
Signed-off-by: RAGHU Halharvi <[email protected]>
---
arch/alpha/kernel/rtc.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/arch/alpha/kernel/rtc.c b/arch/alpha/kernel/rtc.c
index 1376a2867048..3b5aa424e87c 100644
--- a/arch/alpha/kernel/rtc.c
+++ b/arch/alpha/kernel/rtc.c
@@ -36,7 +36,13 @@ static unsigned long rtc_epoch;
static int __init
specifiy_epoch(char *str)
{
- unsigned long epoch = simple_strtoul(str, NULL, 0);
+ unsigned long epoch;
+ int err;
+
+ err = kstrtoul(str, 0, &epoch);
+ if (err)
+ return err;
+
if (epoch < 1900)
printk("Ignoring invalid user specified epoch %lu\n", epoch);
else
--
2.17.1
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html