From: Nicolin Chen <b42378@freescale.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>,
alsa-devel@alsa-project.org, broonie@kernel.org
Subject: Re: [PATCH v2 1/2] ASoC: fsl_spdif: Remove unnecessary dev_set_drvdata()
Date: Mon, 26 Aug 2013 14:05:56 +0800 [thread overview]
Message-ID: <20130826060556.GA12524@MrMyself> (raw)
In-Reply-To: <1377292486-7591-1-git-send-email-festevam@gmail.com>
Good to know this. Thank you :)
Acked-by: Nicolin Chen <b42378@freescale.com>
(
I'm not sure if I can use 'Acked-by'.
If not, pls replace it to 'Reviewed-by'
Thanks a lot.
)
On Fri, Aug 23, 2013 at 06:14:45PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> Driver core clears the driver data to NULL after device_release or on probe
> failure, so just remove it from here.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> Changes since v1:
> - Also remove dev_set_drvdata from the remove function
>
> sound/soc/fsl/fsl_spdif.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c
> index 42a4382..a8ef46a 100644
> --- a/sound/soc/fsl/fsl_spdif.c
> +++ b/sound/soc/fsl/fsl_spdif.c
> @@ -1184,7 +1184,7 @@ static int fsl_spdif_probe(struct platform_device *pdev)
> &spdif_priv->cpu_dai_drv, 1);
> if (ret) {
> dev_err(&pdev->dev, "failed to register DAI: %d\n", ret);
> - goto error_dev;
> + return ret;
> }
>
> ret = imx_pcm_dma_init(pdev);
> @@ -1197,8 +1197,6 @@ static int fsl_spdif_probe(struct platform_device *pdev)
>
> error_component:
> snd_soc_unregister_component(&pdev->dev);
> -error_dev:
> - dev_set_drvdata(&pdev->dev, NULL);
>
> return ret;
> }
> @@ -1207,7 +1205,6 @@ static int fsl_spdif_remove(struct platform_device *pdev)
> {
> imx_pcm_dma_exit(pdev);
> snd_soc_unregister_component(&pdev->dev);
> - dev_set_drvdata(&pdev->dev, NULL);
>
> return 0;
> }
> --
> 1.8.1.2
>
>
next prev parent reply other threads:[~2013-08-26 6:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-23 21:14 [PATCH v2 1/2] ASoC: fsl_spdif: Remove unnecessary dev_set_drvdata() Fabio Estevam
2013-08-23 21:14 ` [PATCH v2 2/2] ASoC: fsl_spdif: Reduce the noise on comments Fabio Estevam
2013-08-26 6:07 ` Nicolin Chen
2013-08-26 6:05 ` Nicolin Chen [this message]
2013-08-26 11:52 ` [PATCH v2 1/2] ASoC: fsl_spdif: Remove unnecessary dev_set_drvdata() Mark Brown
2013-08-27 1:57 ` Nicolin Chen
2013-08-26 11:53 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130826060556.GA12524@MrMyself \
--to=b42378@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=fabio.estevam@freescale.com \
--cc=festevam@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.