diff options
author | Mark Brown <broonie@linaro.org> | 2014-09-09 16:08:02 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-09-09 16:08:02 -0400 |
commit | de3ac8106815f0129947c78de5b7666ff8748096 (patch) | |
tree | 78c8fe5217a7771e47ebbb2976e5fb9bde41d25c /sound | |
parent | e649057a41c24b4122e976746649e471709d4b16 (diff) | |
parent | a4f87cea72d78f80c0bda1b4d8a821278eb1e4e2 (diff) |
Merge branch 'topic/cs42l56' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-suspend
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/cs42l56.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sound/soc/codecs/cs42l56.c b/sound/soc/codecs/cs42l56.c index c766a5a9ce80..bb74dd17fa26 100644 --- a/sound/soc/codecs/cs42l56.c +++ b/sound/soc/codecs/cs42l56.c | |||
@@ -171,9 +171,9 @@ static bool cs42l56_volatile_register(struct device *dev, unsigned int reg) | |||
171 | { | 171 | { |
172 | switch (reg) { | 172 | switch (reg) { |
173 | case CS42L56_INT_STATUS: | 173 | case CS42L56_INT_STATUS: |
174 | return 1; | 174 | return true; |
175 | default: | 175 | default: |
176 | return 0; | 176 | return false; |
177 | } | 177 | } |
178 | } | 178 | } |
179 | 179 | ||
@@ -1175,11 +1175,8 @@ static int cs42l56_probe(struct snd_soc_codec *codec) | |||
1175 | 1175 | ||
1176 | static int cs42l56_remove(struct snd_soc_codec *codec) | 1176 | static int cs42l56_remove(struct snd_soc_codec *codec) |
1177 | { | 1177 | { |
1178 | struct cs42l56_private *cs42l56 = snd_soc_codec_get_drvdata(codec); | ||
1179 | |||
1180 | cs42l56_free_beep(codec); | 1178 | cs42l56_free_beep(codec); |
1181 | cs42l56_set_bias_level(codec, SND_SOC_BIAS_OFF); | 1179 | cs42l56_set_bias_level(codec, SND_SOC_BIAS_OFF); |
1182 | regulator_bulk_free(ARRAY_SIZE(cs42l56->supplies), cs42l56->supplies); | ||
1183 | 1180 | ||
1184 | return 0; | 1181 | return 0; |
1185 | } | 1182 | } |