projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27d7f47
)
ssb: sprom: replace strict_strtoul() with kstrtoul()
author
Jingoo Han
<jg1.han@samsung.com>
Fri, 31 May 2013 21:35:23 +0000
(21:35 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 3 Jun 2013 07:39:46 +0000
(
00:39
-0700)
The usage 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ssb/sprom.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ssb/sprom.c
b/drivers/ssb/sprom.c
index a3b23644b0fbb42218285c571656a8db2154517d..e753fbe302a750ffa3aa13d3f5b402ad9240a06d 100644
(file)
--- a/
drivers/ssb/sprom.c
+++ b/
drivers/ssb/sprom.c
@@
-54,7
+54,7
@@
static int hex2sprom(u16 *sprom, const char *dump, size_t len,
while (cnt < sprom_size_words) {
memcpy(tmp, dump, 4);
dump += 4;
- err =
strict_
strtoul(tmp, 16, &parsed);
+ err =
k
strtoul(tmp, 16, &parsed);
if (err)
return err;
sprom[cnt++] = swab16((u16)parsed);