diff options
Diffstat (limited to 'sound/soc/codecs/ssm2602.c')
-rw-r--r-- | sound/soc/codecs/ssm2602.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c index 84f4ad568556..cceb0022f02c 100644 --- a/sound/soc/codecs/ssm2602.c +++ b/sound/soc/codecs/ssm2602.c | |||
@@ -294,7 +294,6 @@ static int ssm2602_startup(struct snd_pcm_substream *substream, | |||
294 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 294 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
295 | struct snd_soc_codec *codec = rtd->codec; | 295 | struct snd_soc_codec *codec = rtd->codec; |
296 | struct ssm2602_priv *ssm2602 = snd_soc_codec_get_drvdata(codec); | 296 | struct ssm2602_priv *ssm2602 = snd_soc_codec_get_drvdata(codec); |
297 | struct i2c_client *i2c = codec->control_data; | ||
298 | struct snd_pcm_runtime *master_runtime; | 297 | struct snd_pcm_runtime *master_runtime; |
299 | 298 | ||
300 | /* The DAI has shared clocks so if we already have a playback or | 299 | /* The DAI has shared clocks so if we already have a playback or |
@@ -303,7 +302,7 @@ static int ssm2602_startup(struct snd_pcm_substream *substream, | |||
303 | */ | 302 | */ |
304 | if (ssm2602->master_substream) { | 303 | if (ssm2602->master_substream) { |
305 | master_runtime = ssm2602->master_substream->runtime; | 304 | master_runtime = ssm2602->master_substream->runtime; |
306 | dev_dbg(&i2c->dev, "Constraining to %d bits at %dHz\n", | 305 | dev_dbg(codec->dev, "Constraining to %d bits at %dHz\n", |
307 | master_runtime->sample_bits, | 306 | master_runtime->sample_bits, |
308 | master_runtime->rate); | 307 | master_runtime->rate); |
309 | 308 | ||