diff options
author | Mark Brown <broonie@linaro.org> | 2014-09-09 22:08:02 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-09-09 22:08:02 +0200 |
commit | de3ac8106815f0129947c78de5b7666ff8748096 (patch) | |
tree | 78c8fe5217a7771e47ebbb2976e5fb9bde41d25c /sound/soc | |
parent | ASoC: sgtl5000: Cleanup bias level transitions (diff) | |
parent | ASoC: cs42l56: Remove unneeded regulator_bulk_free call in cs42l56_remove (diff) | |
download | linux-de3ac8106815f0129947c78de5b7666ff8748096.tar.xz linux-de3ac8106815f0129947c78de5b7666ff8748096.zip |
Merge branch 'topic/cs42l56' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-suspend
Diffstat (limited to 'sound/soc')
-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) { switch (reg) { case CS42L56_INT_STATUS: - return 1; + return true; default: - return 0; + return false; } } @@ -1175,11 +1175,8 @@ static int cs42l56_probe(struct snd_soc_codec *codec) static int cs42l56_remove(struct snd_soc_codec *codec) { - struct cs42l56_private *cs42l56 = snd_soc_codec_get_drvdata(codec); - cs42l56_free_beep(codec); cs42l56_set_bias_level(codec, SND_SOC_BIAS_OFF); - regulator_bulk_free(ARRAY_SIZE(cs42l56->supplies), cs42l56->supplies); return 0; } |