aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/haswell.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/intel/haswell.c')
-rw-r--r--sound/soc/intel/haswell.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/sound/soc/intel/haswell.c b/sound/soc/intel/haswell.c
index 54345a2a7386..3981982674ac 100644
--- a/sound/soc/intel/haswell.c
+++ b/sound/soc/intel/haswell.c
@@ -89,8 +89,6 @@ static struct snd_soc_ops haswell_rt5640_ops = {
89 89
90static int haswell_rtd_init(struct snd_soc_pcm_runtime *rtd) 90static int haswell_rtd_init(struct snd_soc_pcm_runtime *rtd)
91{ 91{
92 struct snd_soc_codec *codec = rtd->codec;
93 struct snd_soc_dapm_context *dapm = &codec->dapm;
94 struct sst_pdata *pdata = dev_get_platdata(rtd->platform->dev); 92 struct sst_pdata *pdata = dev_get_platdata(rtd->platform->dev);
95 struct sst_hsw *haswell = pdata->dsp; 93 struct sst_hsw *haswell = pdata->dsp;
96 int ret; 94 int ret;
@@ -104,10 +102,6 @@ static int haswell_rtd_init(struct snd_soc_pcm_runtime *rtd)
104 return ret; 102 return ret;
105 } 103 }
106 104
107 /* always connected */
108 snd_soc_dapm_enable_pin(dapm, "Headphones");
109 snd_soc_dapm_enable_pin(dapm, "Mic");
110
111 return 0; 105 return 0;
112} 106}
113 107
@@ -208,18 +202,11 @@ static int haswell_audio_probe(struct platform_device *pdev)
208{ 202{
209 haswell_rt5640.dev = &pdev->dev; 203 haswell_rt5640.dev = &pdev->dev;
210 204
211 return snd_soc_register_card(&haswell_rt5640); 205 return devm_snd_soc_register_card(&pdev->dev, &haswell_rt5640);
212}
213
214static int haswell_audio_remove(struct platform_device *pdev)
215{
216 snd_soc_unregister_card(&haswell_rt5640);
217 return 0;
218} 206}
219 207
220static struct platform_driver haswell_audio = { 208static struct platform_driver haswell_audio = {
221 .probe = haswell_audio_probe, 209 .probe = haswell_audio_probe,
222 .remove = haswell_audio_remove,
223 .driver = { 210 .driver = {
224 .name = "haswell-audio", 211 .name = "haswell-audio",
225 .owner = THIS_MODULE, 212 .owner = THIS_MODULE,