else if (!strcmp(smt_enabled_cmdline, "off"))
                        smt_enabled_at_boot = 0;
                else {
-                       long smt;
+                       int smt;
                        int rc;
 
-                       rc = strict_strtol(smt_enabled_cmdline, 10, &smt);
+                       rc = kstrtoint(smt_enabled_cmdline, 10, &smt);
                        if (!rc)
                                smt_enabled_at_boot =
-                                       min(threads_per_core, (int)smt);
+                                       min(threads_per_core, smt);
                }
        } else {
                dn = of_find_node_by_path("/options");
 
        size_t new_desired;
        int ret;
 
-       ret = strict_strtoul(buf, 10, &new_desired);
+       ret = kstrtoul(buf, 10, &new_desired);
        if (ret)
                return ret;
 
 
 static ssize_t dlpar_cpu_probe(const char *buf, size_t count)
 {
        struct device_node *dn, *parent;
-       unsigned long drc_index;
+       u32 drc_index;
        int rc;
 
-       rc = strict_strtoul(buf, 0, &drc_index);
+       rc = kstrtou32(buf, 0, &drc_index);
        if (rc)
                return -EINVAL;
 
 
        u64 streamid;
        int rc;
 
-       rc = strict_strtoull(buf, 0, &streamid);
+       rc = kstrtou64(buf, 0, &streamid);
        if (rc)
                return rc;