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>
这个提交包含在:
@@ -189,7 +189,7 @@ static struct snd_soc_dai_link zylonite_dai[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static int zylonite_probe(struct platform_device *pdev)
|
||||
static int zylonite_probe(struct snd_soc_card *card)
|
||||
{
|
||||
int ret;
|
||||
|
||||
@@ -216,7 +216,7 @@ static int zylonite_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int zylonite_remove(struct platform_device *pdev)
|
||||
static int zylonite_remove(struct snd_soc_card *card)
|
||||
{
|
||||
if (clk_pout) {
|
||||
clk_disable(pout);
|
||||
|
在新工单中引用
屏蔽一个用户