From: Axel Lin <axel.lin@gmail.com>
To: linux-mips@linux-mips.org
Cc: Manuel Lauss <manuel.lauss@googlemail.com>,
Artem Bityutskiy <dedekind1@gmail.com>,
Ralf Baechle <ralf@linux-mips.org>,
linux-mtd@lists.infradead.org
Subject: [PATCH] MTD: nand: Convert au1550nd to use module_platform_driver()
Date: Thu, 01 Dec 2011 22:04:07 +0800 [thread overview]
Message-ID: <1322748247.31743.1.camel@phoenix> (raw)
Cc: Manuel Lauss <manuel.lauss@googlemail.com>
Cc: Artem Bityutskiy <dedekind1@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
Hi Ralf,
This patch converts au1550nd to use module_platform_driver().
You have committed a5bd32fd "MTD: nand: make au1550nd.c a platform_driver".
Currently this patch can only apply to either your tree or linux-next.
Could you help to take it.
( committed a5bd32fd does not exist in l2-mtd-2.6.git,
so Artem cannot apply it.)
Thanks,
Axel
drivers/mtd/nand/au1550nd.c | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
diff --git a/drivers/mtd/nand/au1550nd.c b/drivers/mtd/nand/au1550nd.c
index 77fb4e6..73abbc3 100644
--- a/drivers/mtd/nand/au1550nd.c
+++ b/drivers/mtd/nand/au1550nd.c
@@ -560,17 +560,7 @@ static struct platform_driver au1550nd_driver = {
.remove = __devexit_p(au1550nd_remove),
};
-static int __init au1550nd_load(void)
-{
- return platform_driver_register(&au1550nd_driver);
-};
-
-static void __exit au1550nd_exit(void)
-{
- platform_driver_unregister(&au1550nd_driver);
-};
-module_init(au1550nd_load);
-module_exit(au1550nd_exit);
+module_platform_driver(au1550nd_driver);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Embedded Edge, LLC");
--
1.7.5.4
WARNING: multiple messages have this Message-ID (diff)
From: Axel Lin <axel.lin@gmail.com>
To: linux-mips@linux-mips.org
Cc: Manuel Lauss <manuel.lauss@googlemail.com>,
linux-mtd@lists.infradead.org, Ralf Baechle <ralf@linux-mips.org>,
Artem Bityutskiy <dedekind1@gmail.com>
Subject: [PATCH] MTD: nand: Convert au1550nd to use module_platform_driver()
Date: Thu, 01 Dec 2011 22:04:07 +0800 [thread overview]
Message-ID: <1322748247.31743.1.camel@phoenix> (raw)
Cc: Manuel Lauss <manuel.lauss@googlemail.com>
Cc: Artem Bityutskiy <dedekind1@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
Hi Ralf,
This patch converts au1550nd to use module_platform_driver().
You have committed a5bd32fd "MTD: nand: make au1550nd.c a platform_driver".
Currently this patch can only apply to either your tree or linux-next.
Could you help to take it.
( committed a5bd32fd does not exist in l2-mtd-2.6.git,
so Artem cannot apply it.)
Thanks,
Axel
drivers/mtd/nand/au1550nd.c | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
diff --git a/drivers/mtd/nand/au1550nd.c b/drivers/mtd/nand/au1550nd.c
index 77fb4e6..73abbc3 100644
--- a/drivers/mtd/nand/au1550nd.c
+++ b/drivers/mtd/nand/au1550nd.c
@@ -560,17 +560,7 @@ static struct platform_driver au1550nd_driver = {
.remove = __devexit_p(au1550nd_remove),
};
-static int __init au1550nd_load(void)
-{
- return platform_driver_register(&au1550nd_driver);
-};
-
-static void __exit au1550nd_exit(void)
-{
- platform_driver_unregister(&au1550nd_driver);
-};
-module_init(au1550nd_load);
-module_exit(au1550nd_exit);
+module_platform_driver(au1550nd_driver);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Embedded Edge, LLC");
--
1.7.5.4
next reply other threads:[~2011-12-01 14:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-01 14:04 Axel Lin [this message]
2011-12-01 14:04 ` [PATCH] MTD: nand: Convert au1550nd to use module_platform_driver() Axel Lin
2011-12-04 14:15 ` Artem Bityutskiy
2011-12-04 14:15 ` Artem Bityutskiy
2011-12-08 10:45 ` Ralf Baechle
2011-12-08 10:45 ` Ralf Baechle
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=1322748247.31743.1.camel@phoenix \
--to=axel.lin@gmail.com \
--cc=dedekind1@gmail.com \
--cc=linux-mips@linux-mips.org \
--cc=linux-mtd@lists.infradead.org \
--cc=manuel.lauss@googlemail.com \
--cc=ralf@linux-mips.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.