2
0
forked from Ivasoft/openwrt

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
This commit is contained in:
John Crispin
2013-07-27 09:23:18 +00:00
parent c4413b6e08
commit 4176b6fdd3
13 changed files with 53 additions and 53 deletions

View File

@@ -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);