提交 e3edefbd 编写于 作者: A Axel Lin 提交者: Mark Brown

ASoC: Fix prototype for nuc900_ac97_probe and nuc900_ac97_remove

This patch fixes below compile warning:

  CC      sound/soc/nuc900/nuc900-ac97.o
sound/soc/nuc900/nuc900-ac97.c:300: warning: initialization from incompatible pointer type
sound/soc/nuc900/nuc900-ac97.c:301: warning: initialization from incompatible pointer type
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 5a8f1d47
...@@ -263,8 +263,7 @@ static int nuc900_ac97_trigger(struct snd_pcm_substream *substream, ...@@ -263,8 +263,7 @@ static int nuc900_ac97_trigger(struct snd_pcm_substream *substream,
return ret; return ret;
} }
static int nuc900_ac97_probe(struct platform_device *pdev, static int nuc900_ac97_probe(struct snd_soc_dai *dai)
struct snd_soc_dai *dai)
{ {
struct nuc900_audio *nuc900_audio = nuc900_ac97_data; struct nuc900_audio *nuc900_audio = nuc900_ac97_data;
unsigned long val; unsigned long val;
...@@ -284,12 +283,12 @@ static int nuc900_ac97_probe(struct platform_device *pdev, ...@@ -284,12 +283,12 @@ static int nuc900_ac97_probe(struct platform_device *pdev,
return 0; return 0;
} }
static void nuc900_ac97_remove(struct platform_device *pdev, static int nuc900_ac97_remove(struct snd_soc_dai *dai)
struct snd_soc_dai *dai)
{ {
struct nuc900_audio *nuc900_audio = nuc900_ac97_data; struct nuc900_audio *nuc900_audio = nuc900_ac97_data;
clk_disable(nuc900_audio->clk); clk_disable(nuc900_audio->clk);
return 0;
} }
static struct snd_soc_dai_ops nuc900_ac97_dai_ops = { static struct snd_soc_dai_ops nuc900_ac97_dai_ops = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册