Skip to content

Commit

Permalink
Merge branch 'topic/cs42l56' of git://git.kernel.org/pub/scm/linux/ke…
Browse files Browse the repository at this point in the history
…rnel/git/broonie/sound into asoc-suspend
  • Loading branch information
Mark Brown committed Sep 9, 2014
2 parents e649057 + a4f87ce commit de3ac81
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sound/soc/codecs/cs42l56.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit de3ac81

Please sign in to comment.