The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.

Signed-off-by: Jingoo Han <jg1....@samsung.com>
---
 drivers/usb/host/ehci-dbg.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c
index 1599806..db3a7e3 100644
--- a/drivers/usb/host/ehci-dbg.c
+++ b/drivers/usb/host/ehci-dbg.c
@@ -1006,7 +1006,7 @@ static ssize_t debug_lpm_write(struct file *file, const 
char __user *user_buf,
                buf[len - 1] = '\0';
 
        if (strncmp(buf, "enable", 5) == 0) {
-               if (strict_strtoul(buf + 7, 10, &port))
+               if (kstrtoul(buf + 7, 10, &port))
                        return -EINVAL;
                params = ehci_readl(ehci, &ehci->caps->hcs_params);
                if (port > HCS_N_PORTS(params)) {
@@ -1024,13 +1024,13 @@ static ssize_t debug_lpm_write(struct file *file, const 
char __user *user_buf,
                printk(KERN_INFO "force enable LPM for port %lu\n", port);
        } else if (strncmp(buf, "hird=", 5) == 0) {
                unsigned long hird;
-               if (strict_strtoul(buf + 5, 16, &hird))
+               if (kstrtoul(buf + 5, 16, &hird))
                        return -EINVAL;
                printk(KERN_INFO "setting hird %s %lu\n", buf + 6, hird);
                ehci->command = (ehci->command & ~CMD_HIRD) | (hird << 24);
                ehci_writel(ehci, ehci->command, &ehci->regs->command);
        } else if (strncmp(buf, "disable", 7) == 0) {
-               if (strict_strtoul(buf + 8, 10, &port))
+               if (kstrtoul(buf + 8, 10, &port))
                        return -EINVAL;
                params = ehci_readl(ehci, &ehci->caps->hcs_params);
                if (port > HCS_N_PORTS(params)) {
-- 
1.7.1


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to