aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8900.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8900.c')
-rw-r--r--sound/soc/codecs/wm8900.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c
index b7fd96adac64..5da17a704e5a 100644
--- a/sound/soc/codecs/wm8900.c
+++ b/sound/soc/codecs/wm8900.c
@@ -745,7 +745,7 @@ static int fll_factors(struct _fll_div *fll_div, unsigned int Fref,
745static int wm8900_set_fll(struct snd_soc_codec *codec, 745static int wm8900_set_fll(struct snd_soc_codec *codec,
746 int fll_id, unsigned int freq_in, unsigned int freq_out) 746 int fll_id, unsigned int freq_in, unsigned int freq_out)
747{ 747{
748 struct wm8900_priv *wm8900 = codec->private_data; 748 struct wm8900_priv *wm8900 = snd_soc_codec_get_drvdata(codec);
749 struct _fll_div fll_div; 749 struct _fll_div fll_div;
750 unsigned int reg; 750 unsigned int reg;
751 751
@@ -1132,7 +1132,7 @@ static int wm8900_suspend(struct platform_device *pdev, pm_message_t state)
1132{ 1132{
1133 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 1133 struct snd_soc_device *socdev = platform_get_drvdata(pdev);
1134 struct snd_soc_codec *codec = socdev->card->codec; 1134 struct snd_soc_codec *codec = socdev->card->codec;
1135 struct wm8900_priv *wm8900 = codec->private_data; 1135 struct wm8900_priv *wm8900 = snd_soc_codec_get_drvdata(codec);
1136 int fll_out = wm8900->fll_out; 1136 int fll_out = wm8900->fll_out;
1137 int fll_in = wm8900->fll_in; 1137 int fll_in = wm8900->fll_in;
1138 int ret; 1138 int ret;
@@ -1156,7 +1156,7 @@ static int wm8900_resume(struct platform_device *pdev)
1156{ 1156{
1157 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 1157 struct snd_soc_device *socdev = platform_get_drvdata(pdev);
1158 struct snd_soc_codec *codec = socdev->card->codec; 1158 struct snd_soc_codec *codec = socdev->card->codec;
1159 struct wm8900_priv *wm8900 = codec->private_data; 1159 struct wm8900_priv *wm8900 = snd_soc_codec_get_drvdata(codec);
1160 u16 *cache; 1160 u16 *cache;
1161 int i, ret; 1161 int i, ret;
1162 1162
@@ -1206,7 +1206,7 @@ static __devinit int wm8900_i2c_probe(struct i2c_client *i2c,
1206 return -ENOMEM; 1206 return -ENOMEM;
1207 1207
1208 codec = &wm8900->codec; 1208 codec = &wm8900->codec;
1209 codec->private_data = wm8900; 1209 snd_soc_codec_set_drvdata(codec, wm8900);
1210 codec->reg_cache = &wm8900->reg_cache[0]; 1210 codec->reg_cache = &wm8900->reg_cache[0];
1211 codec->reg_cache_size = WM8900_MAXREG; 1211 codec->reg_cache_size = WM8900_MAXREG;
1212 1212
@@ -1305,7 +1305,7 @@ static __devexit int wm8900_i2c_remove(struct i2c_client *client)
1305 wm8900_set_bias_level(wm8900_codec, SND_SOC_BIAS_OFF); 1305 wm8900_set_bias_level(wm8900_codec, SND_SOC_BIAS_OFF);
1306 1306
1307 wm8900_dai.dev = NULL; 1307 wm8900_dai.dev = NULL;
1308 kfree(wm8900_codec->private_data); 1308 kfree(snd_soc_codec_get_drvdata(wm8900_codec));
1309 wm8900_codec = NULL; 1309 wm8900_codec = NULL;
1310 1310
1311 return 0; 1311 return 0;