summaryrefslogtreecommitdiffstats
path: root/drivers/memory/emif.c
diff options
context:
space:
mode:
authorFabio Porcedda <fabio.porcedda@gmail.com>2013-03-14 18:09:35 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-15 19:13:13 +0100
commit7a4541a6591d8b0f6d095ffd94c8ebae75ea57d7 (patch)
tree284ca424b14857f5bad1c8c6f2bf2a93f817f46c /drivers/memory/emif.c
parentmisc: Remove max8997-muic.o Makefile line again (diff)
downloadlinux-7a4541a6591d8b0f6d095ffd94c8ebae75ea57d7.tar.xz
linux-7a4541a6591d8b0f6d095ffd94c8ebae75ea57d7.zip
drivers: memory: use module_platform_driver_probe()
This patch converts the drivers to use the module_platform_driver_probe() macro which makes the code smaller and a bit simpler. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Cc: Benoit Cousson <b-cousson@ti.com> Cc: Aneesh V <aneesh@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/memory/emif.c')
-rw-r--r--drivers/memory/emif.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c
index df0873694858..ecbc1a996eb6 100644
--- a/drivers/memory/emif.c
+++ b/drivers/memory/emif.c
@@ -1841,18 +1841,8 @@ static struct platform_driver emif_driver = {
},
};
-static int __init_or_module emif_register(void)
-{
- return platform_driver_probe(&emif_driver, emif_probe);
-}
-
-static void __exit emif_unregister(void)
-{
- platform_driver_unregister(&emif_driver);
-}
+module_platform_driver_probe(emif_driver, emif_probe);
-module_init(emif_register);
-module_exit(emif_unregister);
MODULE_DESCRIPTION("TI EMIF SDRAM Controller Driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:emif");