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>
This commit is contained in:
Mark Brown
2011-01-26 14:17:20 +00:00
parent 70b2ac126a
commit e7361ec499
6 changed files with 13 additions and 19 deletions

View File

@@ -237,7 +237,7 @@ static struct snd_soc_dai_link tosa_dai[] = {
},
};
static int tosa_probe(struct platform_device *dev)
static int tosa_probe(struct snd_soc_card *card)
{
int ret;
@@ -251,7 +251,7 @@ static int tosa_probe(struct platform_device *dev)
return ret;
}
static int tosa_remove(struct platform_device *dev)
static int tosa_remove(struct snd_soc_card *card)
{
gpio_free(TOSA_GPIO_L_MUTE);
return 0;