aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-08-22 07:59:50 -0400
committerMark Brown <broonie@kernel.org>2017-08-22 08:39:02 -0400
commit790b82898db2f42e3430ca84ac9bc3bd7ab474ce (patch)
treedef3936d1404a2b7264ea14e2730204372668d69
parent7676b40606666547544998e5bc9e7f492fa2e13f (diff)
ASoC: samsung: Remove superfluous snd_soc_jack_free_gpios() call
Since jack gpios are managed via devres, we don't have to call snd_jack_free_gpios() at release any longer. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/samsung/h1940_uda1380.c9
-rw-r--r--sound/soc/samsung/rx1950_uda1380.c10
-rw-r--r--sound/soc/samsung/smartq_wm8987.c9
3 files changed, 0 insertions, 28 deletions
diff --git a/sound/soc/samsung/h1940_uda1380.c b/sound/soc/samsung/h1940_uda1380.c
index 5f5825faeb2a..051935162d7b 100644
--- a/sound/soc/samsung/h1940_uda1380.c
+++ b/sound/soc/samsung/h1940_uda1380.c
@@ -170,14 +170,6 @@ static int h1940_uda1380_init(struct snd_soc_pcm_runtime *rtd)
170 return 0; 170 return 0;
171} 171}
172 172
173static int h1940_uda1380_card_remove(struct snd_soc_card *card)
174{
175 snd_soc_jack_free_gpios(&hp_jack, ARRAY_SIZE(hp_jack_gpios),
176 hp_jack_gpios);
177
178 return 0;
179}
180
181/* s3c24xx digital audio interface glue - connects codec <--> CPU */ 173/* s3c24xx digital audio interface glue - connects codec <--> CPU */
182static struct snd_soc_dai_link h1940_uda1380_dai[] = { 174static struct snd_soc_dai_link h1940_uda1380_dai[] = {
183 { 175 {
@@ -197,7 +189,6 @@ static struct snd_soc_dai_link h1940_uda1380_dai[] = {
197static struct snd_soc_card h1940_asoc = { 189static struct snd_soc_card h1940_asoc = {
198 .name = "h1940", 190 .name = "h1940",
199 .owner = THIS_MODULE, 191 .owner = THIS_MODULE,
200 .remove = h1940_uda1380_card_remove,
201 .dai_link = h1940_uda1380_dai, 192 .dai_link = h1940_uda1380_dai,
202 .num_links = ARRAY_SIZE(h1940_uda1380_dai), 193 .num_links = ARRAY_SIZE(h1940_uda1380_dai),
203 194
diff --git a/sound/soc/samsung/rx1950_uda1380.c b/sound/soc/samsung/rx1950_uda1380.c
index fa096abe9e75..a064ca7d78c3 100644
--- a/sound/soc/samsung/rx1950_uda1380.c
+++ b/sound/soc/samsung/rx1950_uda1380.c
@@ -31,7 +31,6 @@
31#include "s3c24xx-i2s.h" 31#include "s3c24xx-i2s.h"
32 32
33static int rx1950_uda1380_init(struct snd_soc_pcm_runtime *rtd); 33static int rx1950_uda1380_init(struct snd_soc_pcm_runtime *rtd);
34static int rx1950_uda1380_card_remove(struct snd_soc_card *card);
35static int rx1950_startup(struct snd_pcm_substream *substream); 34static int rx1950_startup(struct snd_pcm_substream *substream);
36static int rx1950_hw_params(struct snd_pcm_substream *substream, 35static int rx1950_hw_params(struct snd_pcm_substream *substream,
37 struct snd_pcm_hw_params *params); 36 struct snd_pcm_hw_params *params);
@@ -118,7 +117,6 @@ static const struct snd_soc_dapm_route audio_map[] = {
118static struct snd_soc_card rx1950_asoc = { 117static struct snd_soc_card rx1950_asoc = {
119 .name = "rx1950", 118 .name = "rx1950",
120 .owner = THIS_MODULE, 119 .owner = THIS_MODULE,
121 .remove = rx1950_uda1380_card_remove,
122 .dai_link = rx1950_uda1380_dai, 120 .dai_link = rx1950_uda1380_dai,
123 .num_links = ARRAY_SIZE(rx1950_uda1380_dai), 121 .num_links = ARRAY_SIZE(rx1950_uda1380_dai),
124 122
@@ -219,14 +217,6 @@ static int rx1950_uda1380_init(struct snd_soc_pcm_runtime *rtd)
219 return 0; 217 return 0;
220} 218}
221 219
222static int rx1950_uda1380_card_remove(struct snd_soc_card *card)
223{
224 snd_soc_jack_free_gpios(&hp_jack, ARRAY_SIZE(hp_jack_gpios),
225 hp_jack_gpios);
226
227 return 0;
228}
229
230static int __init rx1950_init(void) 220static int __init rx1950_init(void)
231{ 221{
232 int ret; 222 int ret;
diff --git a/sound/soc/samsung/smartq_wm8987.c b/sound/soc/samsung/smartq_wm8987.c
index 425ee2ba37f0..cf0f54e652c1 100644
--- a/sound/soc/samsung/smartq_wm8987.c
+++ b/sound/soc/samsung/smartq_wm8987.c
@@ -160,14 +160,6 @@ static int smartq_wm8987_init(struct snd_soc_pcm_runtime *rtd)
160 return err; 160 return err;
161} 161}
162 162
163static int smartq_wm8987_card_remove(struct snd_soc_card *card)
164{
165 snd_soc_jack_free_gpios(&smartq_jack, ARRAY_SIZE(smartq_jack_gpios),
166 smartq_jack_gpios);
167
168 return 0;
169}
170
171static struct snd_soc_dai_link smartq_dai[] = { 163static struct snd_soc_dai_link smartq_dai[] = {
172 { 164 {
173 .name = "wm8987", 165 .name = "wm8987",
@@ -186,7 +178,6 @@ static struct snd_soc_dai_link smartq_dai[] = {
186static struct snd_soc_card snd_soc_smartq = { 178static struct snd_soc_card snd_soc_smartq = {
187 .name = "SmartQ", 179 .name = "SmartQ",
188 .owner = THIS_MODULE, 180 .owner = THIS_MODULE,
189 .remove = smartq_wm8987_card_remove,
190 .dai_link = smartq_dai, 181 .dai_link = smartq_dai,
191 .num_links = ARRAY_SIZE(smartq_dai), 182 .num_links = ARRAY_SIZE(smartq_dai),
192 183