arch/powerpc: replace obsolete strict_strto* calls
[linux-2.6-block.git] / arch / powerpc / platforms / pseries / dlpar.c
index 2d0b4d68a40a076f970fd458ab09d06785a43ff2..a2450b8a50a5eaaf3bbab9fc402bbf8997c00ed4 100644 (file)
@@ -400,10 +400,10 @@ out:
 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;