From: Mika Korhonen <mika.j.korhonen@gmail.com>
To: David Brownell <david-b@pacbell.net>
Cc: linux-mtd Mailing List <linux-mtd@lists.infradead.org>,
David Woodhouse <dwmw2@infradead.org>,
Adrian Hunter <adrian.hunter@nokia.com>
Subject: [PATCH] [MTD] ONENAND: Fix devexit macro usage in OMAP OneNAND (was Re: [PATCH] OMAP OneNAND: add missing __devexit_p wrappers)
Date: Thu, 21 May 2009 23:17:44 +0300 [thread overview]
Message-ID: <7948530905211317h5bd9a395ta5b8575befed96c@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 432 bytes --]
2009/4/29 David Brownell <david-b@pacbell.net>:
> On Wednesday 29 April 2009, Adrian Hunter wrote:
>> + .shutdown = __devexit_p(omap2_onenand_shutdown),
>
> That looks wrong. Shutdown functions shouldn't get discarded
> like exit functions. I'd think the fix for that would be taking
> away any __devexit annotation on the shutdown function.
>
>
Here follows the revised patch, fixed as suggested.
Mika
[-- Attachment #2: 0001-Fix-devexit-macro-usage-in-OMAP-OneNAND.patch --]
[-- Type: text/x-patch, Size: 1333 bytes --]
From 090161dcc28f685a9b1f15c2c652925f052bdf18 Mon Sep 17 00:00:00 2001
From: Mika Korhonen <mika.j.korhonen@gmail.com>
Date: Thu, 21 May 2009 23:09:42 +0300
Subject: [PATCH] Fix devexit macro usage in OMAP OneNAND
Add missing __devexit_p wrapper and no more mark shutdown with __devesit.
Fixes build in configurations where devexit functions get discarded.
Signed-off-by: Mika Korhonen <mika.j.korhonen@gmail.com>
---
drivers/mtd/onenand/omap2.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
index f2e9de1..df26db8 100644
--- a/drivers/mtd/onenand/omap2.c
+++ b/drivers/mtd/onenand/omap2.c
@@ -566,7 +566,7 @@ int omap2_onenand_rephase(void)
NULL, __adjust_timing);
}
-static void __devexit omap2_onenand_shutdown(struct platform_device *pdev)
+static void omap2_onenand_shutdown(struct platform_device *pdev)
{
struct omap2_onenand *c = dev_get_drvdata(&pdev->dev);
@@ -778,7 +778,7 @@ static int __devexit omap2_onenand_remove(struct platform_device *pdev)
static struct platform_driver omap2_onenand_driver = {
.probe = omap2_onenand_probe,
- .remove = omap2_onenand_remove,
+ .remove = __devexit_p(omap2_onenand_remove),
.shutdown = omap2_onenand_shutdown,
.driver = {
.name = DRIVER_NAME,
--
1.6.0.4
next reply other threads:[~2009-05-21 20:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-21 20:17 Mika Korhonen [this message]
2009-05-23 9:14 ` [PATCH] [MTD] ONENAND: Fix devexit macro usage in OMAP OneNAND (was Re: [PATCH] OMAP OneNAND: add missing __devexit_p wrappers) Artem Bityutskiy
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=7948530905211317h5bd9a395ta5b8575befed96c@mail.gmail.com \
--to=mika.j.korhonen@gmail.com \
--cc=adrian.hunter@nokia.com \
--cc=david-b@pacbell.net \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox