Skip to content

Commit

Permalink
drivers/firmware/google/gsmi.c: replace strict_strtoul() with kstrtoul()
Browse files Browse the repository at this point in the history
The use of strict_strtoul() is not preferred, because strict_strtoul() is
obsolete.  Thus, kstrtoul() should be used.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: Tom Gundersen <teg@jklm.no>
Cc: Mike Waychison <mikew@google.com>
Acked-by: Mike Waychison <mikew@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jingoo Han authored and torvalds committed Sep 11, 2013
1 parent 8aa6c21 commit 20d0e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firmware/google/gsmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ static ssize_t gsmi_clear_eventlog_store(struct kobject *kobj,
u32 data_type;
} param;

rc = strict_strtoul(buf, 0, &val);
rc = kstrtoul(buf, 0, &val);
if (rc)
return rc;

Expand Down

0 comments on commit 20d0e57

Please sign in to comment.