From: Jingoo Han Date: Tue, 23 Oct 2012 12:27:52 +0000 (-0700) Subject: leds: ledtrig-gpio: replace strict_strtoul() with kstrtoul() X-Git-Tag: next-20121029~26^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1d4badcb32b8165696e8426ec51b6dd29455f9f9;p=karo-tx-linux.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;