diff options
author | Fabio Porcedda <fabio.porcedda@gmail.com> | 2013-03-14 13:09:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-15 14:13:13 -0400 |
commit | 7a4541a6591d8b0f6d095ffd94c8ebae75ea57d7 (patch) | |
tree | 284ca424b14857f5bad1c8c6f2bf2a93f817f46c /drivers/memory | |
parent | 61084d992733e8f87f7278c71cdb93869fad9c17 (diff) |
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')
-rw-r--r-- | drivers/memory/emif.c | 12 |
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 = { | |||
1841 | }, | 1841 | }, |
1842 | }; | 1842 | }; |
1843 | 1843 | ||
1844 | static int __init_or_module emif_register(void) | 1844 | module_platform_driver_probe(emif_driver, emif_probe); |
1845 | { | ||
1846 | return platform_driver_probe(&emif_driver, emif_probe); | ||
1847 | } | ||
1848 | |||
1849 | static void __exit emif_unregister(void) | ||
1850 | { | ||
1851 | platform_driver_unregister(&emif_driver); | ||
1852 | } | ||
1853 | 1845 | ||
1854 | module_init(emif_register); | ||
1855 | module_exit(emif_unregister); | ||
1856 | MODULE_DESCRIPTION("TI EMIF SDRAM Controller Driver"); | 1846 | MODULE_DESCRIPTION("TI EMIF SDRAM Controller Driver"); |
1857 | MODULE_LICENSE("GPL"); | 1847 | MODULE_LICENSE("GPL"); |
1858 | MODULE_ALIAS("platform:emif"); | 1848 | MODULE_ALIAS("platform:emif"); |