diff options
Diffstat (limited to 'sound/soc/codecs/cs42l51.c')
-rw-r--r-- | sound/soc/codecs/cs42l51.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index cb086eaf4e0..a7fdca36b49 100644 --- a/sound/soc/codecs/cs42l51.c +++ b/sound/soc/codecs/cs42l51.c | |||
@@ -519,6 +519,7 @@ static struct snd_soc_dai_driver cs42l51_dai = { | |||
519 | static int cs42l51_probe(struct snd_soc_codec *codec) | 519 | static int cs42l51_probe(struct snd_soc_codec *codec) |
520 | { | 520 | { |
521 | struct cs42l51_private *cs42l51 = snd_soc_codec_get_drvdata(codec); | 521 | struct cs42l51_private *cs42l51 = snd_soc_codec_get_drvdata(codec); |
522 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
522 | int ret, reg; | 523 | int ret, reg; |
523 | 524 | ||
524 | codec->control_data = cs42l51->control_data; | 525 | codec->control_data = cs42l51->control_data; |
@@ -550,9 +551,9 @@ static int cs42l51_probe(struct snd_soc_codec *codec) | |||
550 | 551 | ||
551 | snd_soc_add_controls(codec, cs42l51_snd_controls, | 552 | snd_soc_add_controls(codec, cs42l51_snd_controls, |
552 | ARRAY_SIZE(cs42l51_snd_controls)); | 553 | ARRAY_SIZE(cs42l51_snd_controls)); |
553 | snd_soc_dapm_new_controls(codec, cs42l51_dapm_widgets, | 554 | snd_soc_dapm_new_controls(dapm, cs42l51_dapm_widgets, |
554 | ARRAY_SIZE(cs42l51_dapm_widgets)); | 555 | ARRAY_SIZE(cs42l51_dapm_widgets)); |
555 | snd_soc_dapm_add_routes(codec, cs42l51_routes, | 556 | snd_soc_dapm_add_routes(dapm, cs42l51_routes, |
556 | ARRAY_SIZE(cs42l51_routes)); | 557 | ARRAY_SIZE(cs42l51_routes)); |
557 | 558 | ||
558 | return 0; | 559 | return 0; |