From: Jingoo Han Date: Fri, 19 Jul 2013 06:54:11 +0000 (+0900) Subject: mtd: mtdswap: replace strict_strtoul() with kstrtoul() X-Git-Tag: upstream/snapshot3+hdmi~4372^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3156231fb644cf29c1d7f21766ff9e33dc9761d3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mtd: mtdswap: replace strict_strtoul() with kstrtoul() The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han Signed-off-by: Brian Norris Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/mtdswap.c b/drivers/mtd/mtdswap.c index c92f0f6..8b33b26 100644 --- a/drivers/mtd/mtdswap.c +++ b/drivers/mtd/mtdswap.c @@ -1425,7 +1425,7 @@ static void mtdswap_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) return; while ((this_opt = strsep(&parts, ",")) != NULL) { - if (strict_strtoul(this_opt, 0, &part) < 0) + if (kstrtoul(this_opt, 0, &part) < 0) return; if (mtd->index == part)