[PATCH] sh/intc: Fix obsolete function

From: Ding Xiang
Date: Wed May 29 2019 - 06:20:38 EST


simple_strtoul is obsolete, use kstrtoul instead.

Signed-off-by: Ding Xiang <dingxiang@xxxxxxxxxxxxxxxxxxxx>
---
drivers/sh/intc/userimask.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/sh/intc/userimask.c b/drivers/sh/intc/userimask.c
index 87d69e7..d1d8e9b 100644
--- a/drivers/sh/intc/userimask.c
+++ b/drivers/sh/intc/userimask.c
@@ -33,7 +33,8 @@
{
unsigned long level;

- level = simple_strtoul(buf, NULL, 10);
+ if (kstrtoul(buf, 10, &level))
+ return -EINVAL;

/*
* Minimal acceptable IRQ levels are in the 2 - 16 range, but
--
1.9.1