From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Jingoo Han <jg1.han@samsung.com>, "'Simon Horman'" <horms@verge.net.au>
Cc: "'Linus Walleij'" <linus.walleij@linaro.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pinctrl: sh-pfc: remove unnecessary platform_set_drvdata()
Date: Thu, 22 Aug 2013 13:04:02 +0200 [thread overview]
Message-ID: <1510830.GiieqIPrhn@avalon> (raw)
In-Reply-To: <001b01ce9edb$70236f80$506a4e80$%han@samsung.com>
Hi Jingoo,
Thank you for the patch.
On Thursday 22 August 2013 11:00:55 Jingoo Han wrote:
> The driver core clears the driver data to NULL after device_release
> or on probe failure. Thus, it is not needed to manually clear the
> device driver data to NULL.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Linus, can you take this for v3.12 ? If it's too late I'll take it in my tree
and will include it in the v3.13 pull request.
> ---
> drivers/pinctrl/sh-pfc/core.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/pinctrl/sh-pfc/core.c b/drivers/pinctrl/sh-pfc/core.c
> index 9e66614..738f14f 100644
> --- a/drivers/pinctrl/sh-pfc/core.c
> +++ b/drivers/pinctrl/sh-pfc/core.c
> @@ -539,8 +539,6 @@ static int sh_pfc_remove(struct platform_device *pdev)
> if (pfc->info->ops && pfc->info->ops->exit)
> pfc->info->ops->exit(pfc);
>
> - platform_set_drvdata(pdev, NULL);
> -
> return 0;
> }
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2013-08-22 11:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-22 2:00 [PATCH] pinctrl: sh-pfc: remove unnecessary platform_set_drvdata() Jingoo Han
2013-08-22 11:04 ` Laurent Pinchart [this message]
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=1510830.GiieqIPrhn@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=horms@verge.net.au \
--cc=jg1.han@samsung.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
/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.