summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/docg4.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-05 08:28:33 +0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-04-05 16:14:24 +0400
commit725a2277f8b537a932bffb4c4bb2288d05c84a74 (patch)
treed47f0236c3dbe23cf67f02be7d655f71c233d6e4 /drivers/mtd/nand/docg4.c
parenta6fb35d3790aeaaaa50575c68fa188da29da6ecf (diff)
downloadlinux-725a2277f8b537a932bffb4c4bb2288d05c84a74.tar.xz
mtd: doc: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/docg4.c')
-rw-r--r--drivers/mtd/nand/docg4.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mtd/nand/docg4.c b/drivers/mtd/nand/docg4.c
index 18fa4489e52e..fa25e7a08134 100644
--- a/drivers/mtd/nand/docg4.c
+++ b/drivers/mtd/nand/docg4.c
@@ -1397,18 +1397,7 @@ static struct platform_driver docg4_driver = {
.remove = __exit_p(cleanup_docg4),
};
-static int __init docg4_init(void)
-{
- return platform_driver_probe(&docg4_driver, probe_docg4);
-}
-
-static void __exit docg4_exit(void)
-{
- platform_driver_unregister(&docg4_driver);
-}
-
-module_init(docg4_init);
-module_exit(docg4_exit);
+module_platform_driver_probe(docg4_driver, probe_docg4);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Mike Dunn");