From: Jingoo Han <jg1.han@samsung.com>
To: "'Daniel Lezcano'" <daniel.lezcano@linaro.org>
Cc: "'Thomas Gleixner'" <tglx@linutronix.de>,
linux-kernel@vger.kernel.org, "'Magnus Damm'" <damm@igel.co.jp>,
"'Paul Mundt'" <lethal@linux-sh.org>,
"'Simon Horman'" <horms+renesas@verge.net.au>,
"'Jingoo Han'" <jg1.han@samsung.com>
Subject: [PATCH 1/2] clocksource: sh_tmu: remove unnecessary platform_set_drvdata()
Date: Wed, 21 Aug 2013 18:21:29 +0900 [thread overview]
Message-ID: <001b01ce9e4f$d1c97950$755c6bf0$%han@samsung.com> (raw)
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>
---
drivers/clocksource/sh_tmu.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c
index 78b8dae..54ab475 100644
--- a/drivers/clocksource/sh_tmu.c
+++ b/drivers/clocksource/sh_tmu.c
@@ -509,7 +509,6 @@ static int sh_tmu_probe(struct platform_device *pdev)
ret = sh_tmu_setup(p, pdev);
if (ret) {
kfree(p);
- platform_set_drvdata(pdev, NULL);
pm_runtime_idle(&pdev->dev);
return ret;
}
--
1.7.10.4
next reply other threads:[~2013-08-21 9:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-21 9:21 Jingoo Han [this message]
2013-08-21 9:22 ` [PATCH 2/2] clocksource: sh_mtu2: " Jingoo Han
2013-08-22 0:29 ` [PATCH 1/2] clocksource: sh_tmu: " Simon Horman
2013-12-03 6:50 Jingoo Han
2013-12-04 14:54 ` Daniel Lezcano
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='001b01ce9e4f$d1c97950$755c6bf0$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=damm@igel.co.jp \
--cc=daniel.lezcano@linaro.org \
--cc=horms+renesas@verge.net.au \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®