]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - drivers/usb/core/port.c
usb: core: Use kstrtobool() instead of strtobool()
[thirdparty/linux.git] / drivers / usb / core / port.c
index 38c1a4f4fdeae5025633727774a15eace5b4492f..015204fc67a108f57fa40549a3578c2e23d855d9 100644 (file)
@@ -7,6 +7,7 @@
  * Author: Lan Tianyu <tianyu.lan@intel.com>
  */
 
+#include <linux/kstrtox.h>
 #include <linux/slab.h>
 #include <linux/pm_qos.h>
 #include <linux/component.h>
@@ -63,7 +64,7 @@ static ssize_t disable_store(struct device *dev, struct device_attribute *attr,
        bool disabled;
        int rc;
 
-       rc = strtobool(buf, &disabled);
+       rc = kstrtobool(buf, &disabled);
        if (rc)
                return rc;