Skip to contentSkip to conversation

MTD: nand: Convert au1550nd to use module_platform_driver()

PATCH In review Axel Lin 3 participants 3 messages Dec 1, 2011 – Dec 8, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 MTD: nand: Convert au1550nd to use module_platform_driver()

Cc Manuel Lauss <[email protected]>
Cc Artem Bityutskiy <[email protected]>
Cc Ralf Baechle <[email protected]>

---
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(-)
drivers/mtd/nand/au1550nd.c +1 -11
index 77fb4e6..73abbc3 100644
@@ -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");
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 4 lines · Axel Lin
Cc Manuel Lauss <[email protected]>
Cc Artem Bityutskiy <[email protected]>
Cc Ralf Baechle <[email protected]>
Quoted 8 lines

---
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.)

Yes, please, merge the au1550nd.c piece via Ralf, thanks!

Signature · 2 lines
Best Regards,
Artem Bityutskiy
#2 lore raw
Quoted 9 lines · Artem Bityutskiy
Quoted 7 lines

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.)

Yes, please, merge the au1550nd.c piece via Ralf, thanks!

No point in adding code to change it again first commit so I've folded this patch into "MTD: nand: make au1550nd.c a platform_driver".

Thanks folks!

Ralf