Skip to contentSkip to conversation

ASoC: neo1973_gta02_wm8753: fix wrong parameter for snd_soc_register_dai and snd_soc_unregister_dai

PATCH Applied Axel Lin 3 participants 3 messages Nov 25, 2010

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: neo1973_gta02_wm8753: fix wrong parameter for snd_soc_register_dai and snd_soc_unregister_dai

---
 sound/soc/samsung/neo1973_gta02_wm8753.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/samsung/neo1973_gta02_wm8753.c +2 -2
index 920e8d1..8c65b63 100644
@@ -438,7 +438,7 @@ static int __init neo1973_gta02_init(void)
 		return -ENOMEM;
 
 	/* register bluetooth DAI here */
-	ret = snd_soc_register_dai(&neo1973_gta02_snd_device->dev, -1, &bt_dai);
+	ret = snd_soc_register_dai(&neo1973_gta02_snd_device->dev, &bt_dai);
 	if (ret) {
 		platform_device_put(neo1973_gta02_snd_device);
 		return ret;
@@ -491,7 +491,7 @@ module_init(neo1973_gta02_init);
 
 static void __exit neo1973_gta02_exit(void)
 {
-	snd_soc_unregister_dai(&neo1973_gta02_snd_device->dev, -1);
+	snd_soc_unregister_dai(&neo1973_gta02_snd_device->dev);
 	platform_device_unregister(neo1973_gta02_snd_device);
 	gpio_free(GTA02_GPIO_HP_IN);
 	gpio_free(GTA02_GPIO_AMP_SHUT);
Signature · 1 line
1.7.2
Acked-by on v1 1/1
#1 lore raw
Quoted 19 lines · Axel Lin
---
 sound/soc/samsung/neo1973_gta02_wm8753.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/samsung/neo1973_gta02_wm8753.c +1 -1
index 920e8d1..8c65b63 100644
@@ -438,7 +438,7 @@ static int __init neo1973_gta02_init(void)
 		return -ENOMEM;
 
 	/* register bluetooth DAI here */
-	ret = snd_soc_register_dai(&neo1973_gta02_snd_device->dev, -1, &bt_dai);
+	ret = snd_soc_register_dai(&neo1973_gta02_snd_device->dev, &bt_dai);
 	if (ret) {
 		platform_device_put(neo1973_gta02_snd_device);
 		return ret;

sound/soc/samsung/neo1973_gta02_wm8753.c module_init(neo1973_gta02_init); · line 497

Quoted 8 lines
sound/soc/samsung/neo1973_gta02_wm8753.c +1 -1
@@ -491,7 +491,7 @@ module_init(neo1973_gta02_init);
 
 static void __exit neo1973_gta02_exit(void)
 {
-	snd_soc_unregister_dai(&neo1973_gta02_snd_device->dev, -1);
+	snd_soc_unregister_dai(&neo1973_gta02_snd_device->dev);
 	platform_device_unregister(neo1973_gta02_snd_device);
 	gpio_free(GTA02_GPIO_HP_IN);
 	gpio_free(GTA02_GPIO_AMP_SHUT);
Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk