diff options
Diffstat (limited to 'sound/soc/samsung/h1940_uda1380.c')
-rw-r--r-- | sound/soc/samsung/h1940_uda1380.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sound/soc/samsung/h1940_uda1380.c b/sound/soc/samsung/h1940_uda1380.c index 9f2fb69dbaae..720357f11a7f 100644 --- a/sound/soc/samsung/h1940_uda1380.c +++ b/sound/soc/samsung/h1940_uda1380.c | |||
@@ -189,6 +189,14 @@ static int h1940_uda1380_init(struct snd_soc_pcm_runtime *rtd) | |||
189 | return 0; | 189 | return 0; |
190 | } | 190 | } |
191 | 191 | ||
192 | static int h1940_uda1380_card_remove(struct snd_soc_pcm_runtime *rtd) | ||
193 | { | ||
194 | snd_soc_jack_free_gpios(&hp_jack, ARRAY_SIZE(hp_jack_gpios), | ||
195 | hp_jack_gpios); | ||
196 | |||
197 | return 0; | ||
198 | } | ||
199 | |||
192 | /* s3c24xx digital audio interface glue - connects codec <--> CPU */ | 200 | /* s3c24xx digital audio interface glue - connects codec <--> CPU */ |
193 | static struct snd_soc_dai_link h1940_uda1380_dai[] = { | 201 | static struct snd_soc_dai_link h1940_uda1380_dai[] = { |
194 | { | 202 | { |
@@ -206,6 +214,7 @@ static struct snd_soc_dai_link h1940_uda1380_dai[] = { | |||
206 | static struct snd_soc_card h1940_asoc = { | 214 | static struct snd_soc_card h1940_asoc = { |
207 | .name = "h1940", | 215 | .name = "h1940", |
208 | .owner = THIS_MODULE, | 216 | .owner = THIS_MODULE, |
217 | .remove = h1940_uda1380_card_remove, | ||
209 | .dai_link = h1940_uda1380_dai, | 218 | .dai_link = h1940_uda1380_dai, |
210 | .num_links = ARRAY_SIZE(h1940_uda1380_dai), | 219 | .num_links = ARRAY_SIZE(h1940_uda1380_dai), |
211 | 220 | ||
@@ -257,8 +266,6 @@ err_out: | |||
257 | static void __exit h1940_exit(void) | 266 | static void __exit h1940_exit(void) |
258 | { | 267 | { |
259 | platform_device_unregister(s3c24xx_snd_device); | 268 | platform_device_unregister(s3c24xx_snd_device); |
260 | snd_soc_jack_free_gpios(&hp_jack, ARRAY_SIZE(hp_jack_gpios), | ||
261 | hp_jack_gpios); | ||
262 | gpio_free(S3C_GPIO_END + 9); | 269 | gpio_free(S3C_GPIO_END + 9); |
263 | } | 270 | } |
264 | 271 | ||