diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-05 09:16:07 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-05 09:16:07 -0400 |
commit | a8ea54da5e47bde9ba19230bb3609b0502a288c3 (patch) | |
tree | 6b7bb369d86ab185e4a30a0d58ce485f9a00e7e8 /sound/soc/codecs/wm8962.c | |
parent | 11e16eb365f4f6979cfcb2a2d379338b383590d9 (diff) | |
parent | 6424dca23e6b5a2f7a19a69cf7c0990b11717b00 (diff) |
Merge branch 'for-2.6.37' into HEAD
Diffstat (limited to 'sound/soc/codecs/wm8962.c')
-rw-r--r-- | sound/soc/codecs/wm8962.c | 5 |
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 | ||