[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1290682103.3302.16.camel@odin>
Date: Thu, 25 Nov 2010 10:48:23 +0000
From: Liam Girdwood <lrg@...mlogic.co.uk>
To: Axel Lin <axel.lin@...il.com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
Manuel Lauss <mano@...rinelk.homelinux.net>,
Mark Brown <broonie@...nsource.wolfsonmicro.com>,
alsa-devel@...a-project.org
Subject: Re: [PATCH] ASoC: Call snd_soc_unregister_dais instead of
snd_soc_unregister_dai in sh4_soc_dai_remove
On Thu, 2010-11-25 at 17:23 +0800, Axel Lin wrote:
> We call snd_soc_register_dais() in sh4_soc_dai_probe(),
> thus we should call snd_soc_unregister_dais() in sh4_soc_dai_remove().
>
> Otherwise, we got "too many arguments to function 'snd_soc_unregister_dai'"
> error message.
>
> Signed-off-by: Axel Lin <axel.lin@...il.com>
> ---
> sound/soc/sh/ssi.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/sound/soc/sh/ssi.c b/sound/soc/sh/ssi.c
> index 40bbdf1..05192d9 100644
> --- a/sound/soc/sh/ssi.c
> +++ b/sound/soc/sh/ssi.c
> @@ -387,7 +387,7 @@ static int __devinit sh4_soc_dai_probe(struct platform_device *pdev)
>
> static int __devexit sh4_soc_dai_remove(struct platform_device *pdev)
> {
> - snd_soc_unregister_dai(&pdev->dev, ARRAY_SIZE(sh4_ssi_dai));
> + snd_soc_unregister_dais(&pdev->dev, ARRAY_SIZE(sh4_ssi_dai));
> return 0;
> }
>
Acked-by: Liam Girdwood <lrg@...mlogic.co.uk>
--
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists