diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 18:05:47 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:14 -0500 |
commit | 4e608e4ed9fea873c60749bdba2fbbbfb234bee0 (patch) | |
tree | bd4390aa44f40745790c8373f8dabdc17e6d75f7 /drivers/mmc | |
parent | d34d6517eadc91dc7915a2095c52dc8cde94db83 (diff) |
Drivers: mmc: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.
This change removes the use of __devinit, __devexit_p, and __devexit
from these drivers.
Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Chris Ball <cjb@laptop.org>
Cc: Tony Prisk <linux@prisktech.co.nz>
Cc: Will Newton <will.newton@imgtec.com>
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Thomas Abraham <thomas.abraham@linaro.org>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/dw_mmc-pci.c | 2 | ||||
-rw-r--r-- | drivers/mmc/host/dw_mmc-pltfm.c | 2 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-acpi.c | 6 | ||||
-rw-r--r-- | drivers/mmc/host/wmt-sdmmc.c | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/drivers/mmc/host/dw_mmc-pci.c b/drivers/mmc/host/dw_mmc-pci.c index 8ee0f74f937..083fcd29c9c 100644 --- a/drivers/mmc/host/dw_mmc-pci.c +++ b/drivers/mmc/host/dw_mmc-pci.c | |||
@@ -134,7 +134,7 @@ static struct pci_driver dw_mci_pci_driver = { | |||
134 | .name = "dw_mmc_pci", | 134 | .name = "dw_mmc_pci", |
135 | .id_table = dw_mci_pci_id, | 135 | .id_table = dw_mci_pci_id, |
136 | .probe = dw_mci_pci_probe, | 136 | .probe = dw_mci_pci_probe, |
137 | .remove = __devexit_p(dw_mci_pci_remove), | 137 | .remove = dw_mci_pci_remove, |
138 | .driver = { | 138 | .driver = { |
139 | .pm = &dw_mci_pci_pmops | 139 | .pm = &dw_mci_pci_pmops |
140 | }, | 140 | }, |
diff --git a/drivers/mmc/host/dw_mmc-pltfm.c b/drivers/mmc/host/dw_mmc-pltfm.c index 222036c9e05..5e1fb1d2c42 100644 --- a/drivers/mmc/host/dw_mmc-pltfm.c +++ b/drivers/mmc/host/dw_mmc-pltfm.c | |||
@@ -120,7 +120,7 @@ MODULE_DEVICE_TABLE(of, dw_mci_pltfm_match); | |||
120 | 120 | ||
121 | static struct platform_driver dw_mci_pltfm_driver = { | 121 | static struct platform_driver dw_mci_pltfm_driver = { |
122 | .probe = dw_mci_pltfm_probe, | 122 | .probe = dw_mci_pltfm_probe, |
123 | .remove = __devexit_p(dw_mci_pltfm_remove), | 123 | .remove = dw_mci_pltfm_remove, |
124 | .driver = { | 124 | .driver = { |
125 | .name = "dw_mmc", | 125 | .name = "dw_mmc", |
126 | .of_match_table = of_match_ptr(dw_mci_pltfm_match), | 126 | .of_match_table = of_match_ptr(dw_mci_pltfm_match), |
diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c index 12b0a78497f..2592dddbd96 100644 --- a/drivers/mmc/host/sdhci-acpi.c +++ b/drivers/mmc/host/sdhci-acpi.c | |||
@@ -111,7 +111,7 @@ static const struct sdhci_acpi_slot *sdhci_acpi_get_slot(const char *hid) | |||
111 | return NULL; | 111 | return NULL; |
112 | } | 112 | } |
113 | 113 | ||
114 | static int __devinit sdhci_acpi_probe(struct platform_device *pdev) | 114 | static int sdhci_acpi_probe(struct platform_device *pdev) |
115 | { | 115 | { |
116 | struct device *dev = &pdev->dev; | 116 | struct device *dev = &pdev->dev; |
117 | acpi_handle handle = ACPI_HANDLE(dev); | 117 | acpi_handle handle = ACPI_HANDLE(dev); |
@@ -214,7 +214,7 @@ err_free: | |||
214 | return err; | 214 | return err; |
215 | } | 215 | } |
216 | 216 | ||
217 | static int __devexit sdhci_acpi_remove(struct platform_device *pdev) | 217 | static int sdhci_acpi_remove(struct platform_device *pdev) |
218 | { | 218 | { |
219 | struct sdhci_acpi_host *c = platform_get_drvdata(pdev); | 219 | struct sdhci_acpi_host *c = platform_get_drvdata(pdev); |
220 | struct device *dev = &pdev->dev; | 220 | struct device *dev = &pdev->dev; |
@@ -302,7 +302,7 @@ static struct platform_driver sdhci_acpi_driver = { | |||
302 | .pm = &sdhci_acpi_pm_ops, | 302 | .pm = &sdhci_acpi_pm_ops, |
303 | }, | 303 | }, |
304 | .probe = sdhci_acpi_probe, | 304 | .probe = sdhci_acpi_probe, |
305 | .remove = __devexit_p(sdhci_acpi_remove), | 305 | .remove = sdhci_acpi_remove, |
306 | }; | 306 | }; |
307 | 307 | ||
308 | module_platform_driver(sdhci_acpi_driver); | 308 | module_platform_driver(sdhci_acpi_driver); |
diff --git a/drivers/mmc/host/wmt-sdmmc.c b/drivers/mmc/host/wmt-sdmmc.c index 5ba4605e4f8..154f0e8e931 100644 --- a/drivers/mmc/host/wmt-sdmmc.c +++ b/drivers/mmc/host/wmt-sdmmc.c | |||
@@ -766,7 +766,7 @@ static struct of_device_id wmt_mci_dt_ids[] = { | |||
766 | { /* Sentinel */ }, | 766 | { /* Sentinel */ }, |
767 | }; | 767 | }; |
768 | 768 | ||
769 | static int __devinit wmt_mci_probe(struct platform_device *pdev) | 769 | static int wmt_mci_probe(struct platform_device *pdev) |
770 | { | 770 | { |
771 | struct mmc_host *mmc; | 771 | struct mmc_host *mmc; |
772 | struct wmt_mci_priv *priv; | 772 | struct wmt_mci_priv *priv; |
@@ -892,7 +892,7 @@ fail1: | |||
892 | return ret; | 892 | return ret; |
893 | } | 893 | } |
894 | 894 | ||
895 | static int __devexit wmt_mci_remove(struct platform_device *pdev) | 895 | static int wmt_mci_remove(struct platform_device *pdev) |
896 | { | 896 | { |
897 | struct mmc_host *mmc; | 897 | struct mmc_host *mmc; |
898 | struct wmt_mci_priv *priv; | 898 | struct wmt_mci_priv *priv; |