From: Jingoo Han <jg1.han@samsung.com>
To: "'Andrew Morton'" <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
"'Alessandro Zummo'" <a.zummo@towertech.it>,
rtc-linux@googlegroups.com, "'Jingoo Han'" <jg1.han@samsung.com>
Subject: [PATCH 2/7] rtc: rtc-davinci: add __exit annotation
Date: Thu, 28 Feb 2013 19:37:57 +0900 [thread overview]
Message-ID: <000a01ce159f$ac365bb0$04a31310$%han@samsung.com> (raw)
In-Reply-To: <000901ce159f$94e48270$bead8750$%han@samsung.com>
When platform_driver_probe() is used, bind/unbind via sysfs is
disabled. Thus, __init/__exit annotations can be added to
probe()/remove().
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/rtc/rtc-davinci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/rtc/rtc-davinci.c b/drivers/rtc/rtc-davinci.c
index 56b7308..db877e0 100644
--- a/drivers/rtc/rtc-davinci.c
+++ b/drivers/rtc/rtc-davinci.c
@@ -564,7 +564,7 @@ fail1:
return ret;
}
-static int davinci_rtc_remove(struct platform_device *pdev)
+static int __exit davinci_rtc_remove(struct platform_device *pdev)
{
struct davinci_rtc *davinci_rtc = platform_get_drvdata(pdev);
@@ -581,7 +581,7 @@ static int davinci_rtc_remove(struct platform_device *pdev)
static struct platform_driver davinci_rtc_driver = {
.probe = davinci_rtc_probe,
- .remove = davinci_rtc_remove,
+ .remove = __exit_p(davinci_rtc_remove),
.driver = {
.name = "rtc_davinci",
.owner = THIS_MODULE,
--
1.7.2.5
next prev parent reply other threads:[~2013-02-28 10:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-28 10:37 [PATCH 1/7] rtc: rtc-mv: add __init annotation Jingoo Han
2013-02-28 10:37 ` Jingoo Han [this message]
2013-02-28 10:38 ` [PATCH 3/7] rtc: rtc-ds1302: add __exit annotation Jingoo Han
2013-02-28 10:38 ` [PATCH 4/7] rtc: rtc-imxdi: add __init/__exit annotation Jingoo Han
2013-02-28 10:39 ` [PATCH 5/7] rtc: rtc-nuc900: " Jingoo Han
2013-02-28 10:39 ` [PATCH 6/7] rtc: rtc-pcap: " Jingoo Han
2013-02-28 10:40 ` [PATCH 7/7] rtc: rtc-tegra: " Jingoo Han
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='000a01ce159f$ac365bb0$04a31310$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=a.zummo@towertech.it \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox