diff options
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 70d9a7394b2b..614a8b30d87b 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -165,8 +165,11 @@ static ssize_t pmdown_time_set(struct device *dev, | |||
165 | { | 165 | { |
166 | struct snd_soc_pcm_runtime *rtd = | 166 | struct snd_soc_pcm_runtime *rtd = |
167 | container_of(dev, struct snd_soc_pcm_runtime, dev); | 167 | container_of(dev, struct snd_soc_pcm_runtime, dev); |
168 | int ret; | ||
168 | 169 | ||
169 | strict_strtol(buf, 10, &rtd->pmdown_time); | 170 | ret = strict_strtol(buf, 10, &rtd->pmdown_time); |
171 | if (ret) | ||
172 | return ret; | ||
170 | 173 | ||
171 | return count; | 174 | return count; |
172 | } | 175 | } |
@@ -230,6 +233,7 @@ static const struct file_operations codec_reg_fops = { | |||
230 | .open = codec_reg_open_file, | 233 | .open = codec_reg_open_file, |
231 | .read = codec_reg_read_file, | 234 | .read = codec_reg_read_file, |
232 | .write = codec_reg_write_file, | 235 | .write = codec_reg_write_file, |
236 | .llseek = default_llseek, | ||
233 | }; | 237 | }; |
234 | 238 | ||
235 | static void soc_init_codec_debugfs(struct snd_soc_codec *codec) | 239 | static void soc_init_codec_debugfs(struct snd_soc_codec *codec) |