Commit 4bcbec5a authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] use simple_strtoul instead of simple_strtol

AC97 Codec
Replace simple_strtol with simple_strtoul for compatibility with
2.2.x kernels.
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
parent 91a700ed
...@@ -2501,7 +2501,7 @@ static int apply_quirk_str(ac97_t *ac97, const char *typestr) ...@@ -2501,7 +2501,7 @@ static int apply_quirk_str(ac97_t *ac97, const char *typestr)
} }
/* for compatibility, accept the numbers, too */ /* for compatibility, accept the numbers, too */
if (*typestr >= '0' && *typestr <= '9') if (*typestr >= '0' && *typestr <= '9')
return apply_quirk(ac97, (int)simple_strtol(typestr, NULL, 10)); return apply_quirk(ac97, (int)simple_strtoul(typestr, NULL, 10));
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment