arch/powerpc: replace obsolete strict_strto* calls
Replace strict_strto calls with more appropriate kstrto calls Signed-off-by: Daniel Walter <dwalter@google.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
37028623d7
commit
1618bd53e6
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user