Skip to contentSkip to conversation

ASoC: bf5xx-ad73311: Fix prototype for bf5xx_probe

PATCH Applied Axel Lin 3 participants 3 messages Sep 15, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: bf5xx-ad73311: Fix prototype for bf5xx_probe

Fix below build warning:
sound/soc/blackfin/bf5xx-ad73311.c: warning: initialization from incompatible pointer type

---
 sound/soc/blackfin/bf5xx-ad73311.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/blackfin/bf5xx-ad73311.c +1 -1
index 732a247..b94eb7e 100644
@@ -128,7 +128,7 @@ static int snd_ad73311_configure(void)
 	return 0;
 }
 
-static int bf5xx_probe(struct platform_device *pdev)
+static int bf5xx_probe(struct snd_soc_card *card)
 {
 	int err;
 	if (gpio_request(GPIO_SE, "AD73311_SE")) {
Signature · 1 line
1.7.4.1
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Axel Lin

Fix below build warning:
sound/soc/blackfin/bf5xx-ad73311.c: warning: initialization from incompatible pointer type

---
 sound/soc/blackfin/bf5xx-ad73311.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/blackfin/bf5xx-ad73311.c +0 -0
index 732a247..b94eb7e 100644

sound/soc/blackfin/bf5xx-ad73311.c static int snd_ad73311_configure(void) · line 134

Quoted 8 lines
sound/soc/blackfin/bf5xx-ad73311.c +1 -1
@@ -128,7 +128,7 @@ static int snd_ad73311_configure(void)
 	return 0;
 }
 
-static int bf5xx_probe(struct platform_device *pdev)
+static int bf5xx_probe(struct snd_soc_card *card)
 {
 	int err;
 	if (gpio_request(GPIO_SE, "AD73311_SE")) {
Applied
#2 lore raw
In reply to Axel Lin
Quoted 2 lines · Axel Lin

Fix below build warning:
sound/soc/blackfin/bf5xx-ad73311.c: warning: initialization from incompatible pointer type

Applied, thanks.