diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-05 04:53:23 +0100 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-03-22 17:29:01 +0100 |
commit | d4bf63251c530be61ae7906dc67ace3af36ff3db (patch) | |
tree | 66333dd8d86c4fd559719281d53fe56648ce6010 /drivers/mmc/host/davinci_mmc.c | |
parent | mmc: sdio: bind acpi with sdio function device (diff) | |
download | linux-d4bf63251c530be61ae7906dc67ace3af36ff3db.tar.xz linux-d4bf63251c530be61ae7906dc67ace3af36ff3db.zip |
mmc: davinci_mmc: 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: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/davinci_mmc.c')
-rw-r--r-- | drivers/mmc/host/davinci_mmc.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index 27123f8b7041..4fdc159a0205 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c @@ -1412,18 +1412,7 @@ static struct platform_driver davinci_mmcsd_driver = { .remove = __exit_p(davinci_mmcsd_remove), }; -static int __init davinci_mmcsd_init(void) -{ - return platform_driver_probe(&davinci_mmcsd_driver, - davinci_mmcsd_probe); -} -module_init(davinci_mmcsd_init); - -static void __exit davinci_mmcsd_exit(void) -{ - platform_driver_unregister(&davinci_mmcsd_driver); -} -module_exit(davinci_mmcsd_exit); +module_platform_driver_probe(davinci_mmcsd_driver, davinci_mmcsd_probe); MODULE_AUTHOR("Texas Instruments India"); MODULE_LICENSE("GPL"); |