linux-mips
[Top] [All Lists]

[PATCH] MTD: nand: Convert au1550nd to use module_platform_driver()

To: linux-mips@linux-mips.org
Subject: [PATCH] MTD: nand: Convert au1550nd to use module_platform_driver()
From: Axel Lin <axel.lin@gmail.com>
Date: Thu, 01 Dec 2011 22:04:07 +0800
Cc: Manuel Lauss <manuel.lauss@googlemail.com>, Artem Bityutskiy <dedekind1@gmail.com>, Ralf Baechle <ralf@linux-mips.org>, linux-mtd@lists.infradead.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:subject:from:to:cc:date:content-type:x-mailer :content-transfer-encoding:mime-version; bh=sFQWSnBEzG5MYOVg2yV3FugcyoDTXl/YnxixIx5iKAY=; b=TsxK2jBDt7D+cBSdk/TWjwgIcl/oEgYxdmjJjUqwOwuozo5XnnXjAP9sJgRFEa4j/y GMtSQqSvpEymoPk8eO3ONClNxhYBosFxvZBuTeYyMDd3MrbRqzk0Wh8ujXRhXM7sNYvb 3N9fEmNuRCnrVXCIsvYKADzH5rNqvu5WYAoMo=
Sender: linux-mips-bounce@linux-mips.org
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




<Prev in Thread] Current Thread [Next in Thread>