diff options
author | Heiko Stübner <heiko@sntech.de> | 2013-06-13 04:57:01 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-07-05 12:46:27 -0400 |
commit | b177a530bbe4f7dd01617f542311f87208d21ec6 (patch) | |
tree | c8c3864b2f9a883f877bb8d01118cea321d4713b /drivers/mmc/host/dw_mmc-pltfm.c | |
parent | 04520817d90f1dce863ab7f06531da7579798696 (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.c | 28 |
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 | } |
61 | EXPORT_SYMBOL_GPL(dw_mci_pltfm_register); | 61 | EXPORT_SYMBOL_GPL(dw_mci_pltfm_register); |
62 | 62 | ||
63 | static int dw_mci_pltfm_probe(struct platform_device *pdev) | ||
64 | { | ||
65 | return dw_mci_pltfm_register(pdev, NULL); | ||
66 | } | ||
67 | |||
68 | int 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 | } | ||
75 | EXPORT_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 | }; |
106 | MODULE_DEVICE_TABLE(of, dw_mci_pltfm_match); | 92 | MODULE_DEVICE_TABLE(of, dw_mci_pltfm_match); |
107 | 93 | ||
94 | static int dw_mci_pltfm_probe(struct platform_device *pdev) | ||
95 | { | ||
96 | return dw_mci_pltfm_register(pdev, NULL); | ||
97 | } | ||
98 | |||
99 | int 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 | } | ||
106 | EXPORT_SYMBOL_GPL(dw_mci_pltfm_remove); | ||
107 | |||
108 | static struct platform_driver dw_mci_pltfm_driver = { | 108 | static 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, |