replace strict_strto* call with kstrto*
[linux-2.6-block.git] / arch / tile / kernel / setup.c
index 00732474fb55694e3f1e7fac7a7db7b53b86f6ed..112ababa9e5502c6593969d44c976fbd495cf663 100644 (file)
@@ -228,13 +228,10 @@ early_param("isolnodes", setup_isolnodes);
 #if defined(CONFIG_PCI) && !defined(__tilegx__)
 static int __init setup_pci_reserve(char* str)
 {
-       unsigned long mb;
-
-       if (str == NULL || strict_strtoul(str, 0, &mb) != 0 ||
-           mb > 3 * 1024)
+       if (str == NULL || kstrtouint(str, 0, &pci_reserve_mb) != 0 ||
+           pci_reserve_mb > 3 * 1024)
                return -EINVAL;
 
-       pci_reserve_mb = mb;
        pr_info("Reserving %dMB for PCIE root complex mappings\n",
                pci_reserve_mb);
        return 0;