From: Jingoo Han Date: Tue, 23 Oct 2012 12:27:52 +0000 (-0700) Subject: leds: ledtrig-gpio: replace strict_strtoul() with kstrtoul() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=e8941928faf248530c0eff95462e9fee0b1cc8da;p=deliverable%2Flinux.git leds: ledtrig-gpio: 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: Bryan Wu --- diff --git a/drivers/leds/ledtrig-gpio.c b/drivers/leds/ledtrig-gpio.c index ba215dc42f98..72e3ebfc281f 100644 --- a/drivers/leds/ledtrig-gpio.c +++ b/drivers/leds/ledtrig-gpio.c @@ -110,7 +110,7 @@ static ssize_t gpio_trig_inverted_store(struct device *dev, unsigned long inverted; int ret; - ret = strict_strtoul(buf, 10, &inverted); + ret = kstrtoul(buf, 10, &inverted); if (ret < 0) return ret;