aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8962.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8962.c')
-rw-r--r--sound/soc/codecs/wm8962.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 2eaf9bb36b57..3fc63b43c6a1 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -3502,8 +3502,11 @@ static ssize_t wm8962_beep_set(struct device *dev,
3502{ 3502{
3503 struct wm8962_priv *wm8962 = dev_get_drvdata(dev); 3503 struct wm8962_priv *wm8962 = dev_get_drvdata(dev);
3504 long int time; 3504 long int time;
3505 int ret;
3505 3506
3506 strict_strtol(buf, 10, &time); 3507 ret = strict_strtol(buf, 10, &time);
3508 if (ret != 0)
3509 return ret;
3507 3510
3508 input_event(wm8962->beep, EV_SND, SND_TONE, time); 3511 input_event(wm8962->beep, EV_SND, SND_TONE, time);
3509 3512