summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-03-18 15:11:12 +0530
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-04-05 14:04:06 +0100
commit82fc812ca458a98767b659171a43244dc1ddaf82 (patch)
tree946d78005e73559035452920cad1bde60fd6f129 /drivers/mtd/nand
parent6c67050ab108bcce2576fa1d7a0557eb0376520a (diff)
downloadlinux-3.10-82fc812ca458a98767b659171a43244dc1ddaf82.tar.gz
linux-3.10-82fc812ca458a98767b659171a43244dc1ddaf82.tar.bz2
linux-3.10-82fc812ca458a98767b659171a43244dc1ddaf82.zip
mtd: denali_dt: Use module_platform_driver()
module_platform_driver() removes some boilerplate and makes the code simpler. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> 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')
-rw-r--r--drivers/mtd/nand/denali_dt.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c
index 02988b00031..eb68979ec38 100644
--- a/drivers/mtd/nand/denali_dt.c
+++ b/drivers/mtd/nand/denali_dt.c
@@ -150,17 +150,7 @@ static struct platform_driver denali_dt_driver = {
},
};
-static int __init denali_init_dt(void)
-{
- return platform_driver_register(&denali_dt_driver);
-}
-module_init(denali_init_dt);
-
-static void __exit denali_exit_dt(void)
-{
- platform_driver_unregister(&denali_dt_driver);
-}
-module_exit(denali_exit_dt);
+module_platform_driver(denali_dt_driver);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Jamie Iles");