summaryrefslogtreecommitdiff
path: root/target/linux/generic/files/drivers
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-07-27 09:23:18 +0000
committerJohn Crispin <john@openwrt.org>2013-07-27 09:23:18 +0000
commit4176b6fdd30011a1b86fd14a2211b6e8a15d6140 (patch)
tree8eae5a3183396087f28700ab643b0fda780dce2a /target/linux/generic/files/drivers
parentc4413b6e080904c76cea4ee1fe551cc5406407ca (diff)
downloadmtk-20170518-4176b6fdd30011a1b86fd14a2211b6e8a15d6140.zip
mtk-20170518-4176b6fdd30011a1b86fd14a2211b6e8a15d6140.tar.gz
mtk-20170518-4176b6fdd30011a1b86fd14a2211b6e8a15d6140.tar.bz2
strict_strtoul is obsolete, use kstrtoul instead
based on http://patchwork.openwrt.org/patch/3827/ Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37562
Diffstat (limited to 'target/linux/generic/files/drivers')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366_smi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
index e2b4f02..699234d 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
@@ -743,7 +743,7 @@ static ssize_t rtl8366_write_debugfs_reg(struct file *file,
buf[len - 1] = '\0';
- if (strict_strtoul(buf, 16, &data)) {
+ if (kstrtoul(buf, 16, &data)) {
dev_err(smi->parent, "Invalid reg value %s\n", buf);
} else {
err = rtl8366_smi_write_reg(smi, reg, data);