From: Jingoo Han Date: Wed, 5 Feb 2014 02:02:59 +0000 (+0900) Subject: drm/nouveau/hwmon: replace strict_strtol() with kstrtol() X-Git-Tag: v3.15-rc5~10^2^2~88 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ac4e3a58d58e33b2353b3e187c88b9485f26591;p=platform%2Fkernel%2Flinux-exynos.git drm/nouveau/hwmon: replace strict_strtol() with kstrtol() The usage of strict_strtol() is not preferred, because strict_strtol() is obsolete. Thus, kstrtol() should be used. Signed-off-by: Jingoo Han Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_hwmon.c b/drivers/gpu/drm/nouveau/nouveau_hwmon.c index 5e4ab58..19fd767 100644 --- a/drivers/gpu/drm/nouveau/nouveau_hwmon.c +++ b/drivers/gpu/drm/nouveau/nouveau_hwmon.c @@ -383,8 +383,9 @@ nouveau_hwmon_set_pwm1_enable(struct device *d, struct device_attribute *a, long value; int ret; - if (strict_strtol(buf, 10, &value) == -EINVAL) - return -EINVAL; + ret = kstrtol(buf, 10, &value); + if (ret) + return ret; ret = therm->attr_set(therm, NOUVEAU_THERM_ATTR_FAN_MODE, value); if (ret)