aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/dw_mmc-pltfm.c
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2013-06-13 04:57:01 -0400
committerChris Ball <cjb@laptop.org>2013-07-05 12:46:27 -0400
commitb177a530bbe4f7dd01617f542311f87208d21ec6 (patch)
treec8c3864b2f9a883f877bb8d01118cea321d4713b /drivers/mmc/host/dw_mmc-pltfm.c
parent04520817d90f1dce863ab7f06531da7579798696 (diff)
mmc: dw_mmc-pltfm: move probe and remove below dt match table
In a subsquent patch probe will need to do some handling of data from the dt match table. So to prevent the need for forward declarations, move probe and remove below the match table. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Acked-by: Seungwon Jeon <tgih.jun@samsung.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/dw_mmc-pltfm.c')
-rw-r--r--drivers/mmc/host/dw_mmc-pltfm.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/mmc/host/dw_mmc-pltfm.c b/drivers/mmc/host/dw_mmc-pltfm.c
index 19edb0cd0c5e..54e6f061daa4 100644
--- a/drivers/mmc/host/dw_mmc-pltfm.c
+++ b/drivers/mmc/host/dw_mmc-pltfm.c
@@ -60,20 +60,6 @@ int dw_mci_pltfm_register(struct platform_device *pdev,
60} 60}
61EXPORT_SYMBOL_GPL(dw_mci_pltfm_register); 61EXPORT_SYMBOL_GPL(dw_mci_pltfm_register);
62 62
63static int dw_mci_pltfm_probe(struct platform_device *pdev)
64{
65 return dw_mci_pltfm_register(pdev, NULL);
66}
67
68int dw_mci_pltfm_remove(struct platform_device *pdev)
69{
70 struct dw_mci *host = platform_get_drvdata(pdev);
71
72 dw_mci_remove(host);
73 return 0;
74}
75EXPORT_SYMBOL_GPL(dw_mci_pltfm_remove);
76
77#ifdef CONFIG_PM_SLEEP 63#ifdef CONFIG_PM_SLEEP
78/* 64/*
79 * TODO: we should probably disable the clock to the card in the suspend path. 65 * TODO: we should probably disable the clock to the card in the suspend path.
@@ -105,6 +91,20 @@ static const struct of_device_id dw_mci_pltfm_match[] = {
105}; 91};
106MODULE_DEVICE_TABLE(of, dw_mci_pltfm_match); 92MODULE_DEVICE_TABLE(of, dw_mci_pltfm_match);
107 93
94static int dw_mci_pltfm_probe(struct platform_device *pdev)
95{
96 return dw_mci_pltfm_register(pdev, NULL);
97}
98
99int dw_mci_pltfm_remove(struct platform_device *pdev)
100{
101 struct dw_mci *host = platform_get_drvdata(pdev);
102
103 dw_mci_remove(host);
104 return 0;
105}
106EXPORT_SYMBOL_GPL(dw_mci_pltfm_remove);
107
108static struct platform_driver dw_mci_pltfm_driver = { 108static struct platform_driver dw_mci_pltfm_driver = {
109 .probe = dw_mci_pltfm_probe, 109 .probe = dw_mci_pltfm_probe,
110 .remove = dw_mci_pltfm_remove, 110 .remove = dw_mci_pltfm_remove,