diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-18 07:16:50 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-04-05 09:05:32 -0400 |
commit | cdb6404cc53a166a1e3b0179bd8d1f4070beff41 (patch) | |
tree | 54faf82f4fb15d2b68f61d9895b121280db90d25 /drivers | |
parent | 5884974eda0f7fa59d8a1a8e06169f0a2dba6bf3 (diff) |
mtd: omap2: Use module_platform_driver()
module_platform_driver macro 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')
-rw-r--r-- | drivers/mtd/onenand/omap2.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c index eec2aedb4ab8..d98b198edd53 100644 --- a/drivers/mtd/onenand/omap2.c +++ b/drivers/mtd/onenand/omap2.c | |||
@@ -832,19 +832,7 @@ static struct platform_driver omap2_onenand_driver = { | |||
832 | }, | 832 | }, |
833 | }; | 833 | }; |
834 | 834 | ||
835 | static int __init omap2_onenand_init(void) | 835 | module_platform_driver(omap2_onenand_driver); |
836 | { | ||
837 | printk(KERN_INFO "OneNAND driver initializing\n"); | ||
838 | return platform_driver_register(&omap2_onenand_driver); | ||
839 | } | ||
840 | |||
841 | static void __exit omap2_onenand_exit(void) | ||
842 | { | ||
843 | platform_driver_unregister(&omap2_onenand_driver); | ||
844 | } | ||
845 | |||
846 | module_init(omap2_onenand_init); | ||
847 | module_exit(omap2_onenand_exit); | ||
848 | 836 | ||
849 | MODULE_ALIAS("platform:" DRIVER_NAME); | 837 | MODULE_ALIAS("platform:" DRIVER_NAME); |
850 | MODULE_LICENSE("GPL"); | 838 | MODULE_LICENSE("GPL"); |