diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-26 09:17:20 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-27 06:56:13 -0500 |
commit | e7361ec4996c170c63c4ac379085896db85ff34d (patch) | |
tree | 800a098271e33a38031d7d761f35328b853e1693 /sound/soc/pxa/tosa.c | |
parent | 70b2ac126a60c87145ae8a8eb1b4dccaa0bf5468 (diff) |
ASoC: Replace pdev with card in machine driver probe and remove
In order to support cards instantiated without using soc-audio remove
the use of the platform device in the card probe() and remove() ops.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/pxa/tosa.c')
-rw-r--r-- | sound/soc/pxa/tosa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/pxa/tosa.c b/sound/soc/pxa/tosa.c index f75804ef0897..489139a31cf9 100644 --- a/sound/soc/pxa/tosa.c +++ b/sound/soc/pxa/tosa.c | |||
@@ -237,7 +237,7 @@ static struct snd_soc_dai_link tosa_dai[] = { | |||
237 | }, | 237 | }, |
238 | }; | 238 | }; |
239 | 239 | ||
240 | static int tosa_probe(struct platform_device *dev) | 240 | static int tosa_probe(struct snd_soc_card *card) |
241 | { | 241 | { |
242 | int ret; | 242 | int ret; |
243 | 243 | ||
@@ -251,7 +251,7 @@ static int tosa_probe(struct platform_device *dev) | |||
251 | return ret; | 251 | return ret; |
252 | } | 252 | } |
253 | 253 | ||
254 | static int tosa_remove(struct platform_device *dev) | 254 | static int tosa_remove(struct snd_soc_card *card) |
255 | { | 255 | { |
256 | gpio_free(TOSA_GPIO_L_MUTE); | 256 | gpio_free(TOSA_GPIO_L_MUTE); |
257 | return 0; | 257 | return 0; |