aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-04 22:53:23 -0500
committerChris Ball <cjb@laptop.org>2013-03-22 12:29:01 -0400
commitd4bf63251c530be61ae7906dc67ace3af36ff3db (patch)
tree66333dd8d86c4fd559719281d53fe56648ce6010
parenteed222aca8d077af3600b651176f6fd04d95cce1 (diff)
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>
-rw-r--r--drivers/mmc/host/davinci_mmc.c13
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 = {
1412 .remove = __exit_p(davinci_mmcsd_remove), 1412 .remove = __exit_p(davinci_mmcsd_remove),
1413}; 1413};
1414 1414
1415static int __init davinci_mmcsd_init(void) 1415module_platform_driver_probe(davinci_mmcsd_driver, davinci_mmcsd_probe);
1416{
1417 return platform_driver_probe(&davinci_mmcsd_driver,
1418 davinci_mmcsd_probe);
1419}
1420module_init(davinci_mmcsd_init);
1421
1422static void __exit davinci_mmcsd_exit(void)
1423{
1424 platform_driver_unregister(&davinci_mmcsd_driver);
1425}
1426module_exit(davinci_mmcsd_exit);
1427 1416
1428MODULE_AUTHOR("Texas Instruments India"); 1417MODULE_AUTHOR("Texas Instruments India");
1429MODULE_LICENSE("GPL"); 1418MODULE_LICENSE("GPL");