aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/janz-ican3.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-05-31 17:18:55 -0400
committerDavid S. Miller <davem@davemloft.net>2013-06-03 03:39:46 -0400
commit0672f0ab57dc71958542ac41e5a7ccb6a382a8f3 (patch)
treeb729314765ae3740ba2d26200b71ed56aa223636 /drivers/net/can/janz-ican3.c
parent9a99d4a50cb8ce516adf0f2436138d4c8e6e4535 (diff)
net: can: replace strict_strtoul() with kstrtoul()
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can/janz-ican3.c')
-rw-r--r--drivers/net/can/janz-ican3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/janz-ican3.c b/drivers/net/can/janz-ican3.c
index c4bc1d2e2033..36bd6fa1c7f3 100644
--- a/drivers/net/can/janz-ican3.c
+++ b/drivers/net/can/janz-ican3.c
@@ -1734,7 +1734,7 @@ static ssize_t ican3_sysfs_set_term(struct device *dev,
1734 unsigned long enable; 1734 unsigned long enable;
1735 int ret; 1735 int ret;
1736 1736
1737 if (strict_strtoul(buf, 0, &enable)) 1737 if (kstrtoul(buf, 0, &enable))
1738 return -EINVAL; 1738 return -EINVAL;
1739 1739
1740 ret = ican3_set_termination(mod, enable); 1740 ret = ican3_set_termination(mod, enable);