diff options
author | Daniel Walter | 2014-05-26 22:59:32 +0100 |
---|---|---|
committer | Chris Metcalf | 2014-05-28 15:47:16 -0400 |
commit | b2dfa048bae3b4afe1944237c1ee9525df00bb6f (patch) | |
tree | da24a40aece892980fad9aa2d4aec3aff9e61377 /arch/tile/kernel/setup.c | |
parent | ba159fd387a4d47bb41ddc3b06bfc28f33e8d936 (diff) |
replace strict_strto* call with kstrto*
remove obsolete calls to strict_strto* and replace them
with kstrto* calls accordingly.
Signed-off-by: Daniel Walter <dwalter@google.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/setup.c')
-rw-r--r-- | arch/tile/kernel/setup.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c index 00732474fb55..112ababa9e55 100644 --- a/arch/tile/kernel/setup.c +++ b/arch/tile/kernel/setup.c @@ -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; |