aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorludovic.desroches@atmel.com <ludovic.desroches@atmel.com>2014-12-01 09:35:07 -0500
committerUlf Hansson <ulf.hansson@linaro.org>2014-12-02 05:01:06 -0500
commitab050b9269aa545161821cef168976b3bde28d1c (patch)
tree62b9d3ea9e4b13c4202dd35c3c4cea5c93d571ea
parent1c7615b90cbcfb10ef5da291b85774cb2ab2cc76 (diff)
mmc: atmel-mci: remove __init/__exit attributes
Using __init/__exit attributes can cause several breakages so remove them. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/atmel-mci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index f187e75d449c..f16d019edb51 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -2140,7 +2140,7 @@ static irqreturn_t atmci_detect_interrupt(int irq, void *dev_id)
2140 return IRQ_HANDLED; 2140 return IRQ_HANDLED;
2141} 2141}
2142 2142
2143static int __init atmci_init_slot(struct atmel_mci *host, 2143static int atmci_init_slot(struct atmel_mci *host,
2144 struct mci_slot_pdata *slot_data, unsigned int id, 2144 struct mci_slot_pdata *slot_data, unsigned int id,
2145 u32 sdc_reg, u32 sdio_irq) 2145 u32 sdc_reg, u32 sdio_irq)
2146{ 2146{
@@ -2302,7 +2302,7 @@ static bool atmci_configure_dma(struct atmel_mci *host)
2302 * HSMCI provides DMA support and a new config register but no more supports 2302 * HSMCI provides DMA support and a new config register but no more supports
2303 * PDC. 2303 * PDC.
2304 */ 2304 */
2305static void __init atmci_get_cap(struct atmel_mci *host) 2305static void atmci_get_cap(struct atmel_mci *host)
2306{ 2306{
2307 unsigned int version; 2307 unsigned int version;
2308 2308
@@ -2351,7 +2351,7 @@ static void __init atmci_get_cap(struct atmel_mci *host)
2351 } 2351 }
2352} 2352}
2353 2353
2354static int __init atmci_probe(struct platform_device *pdev) 2354static int atmci_probe(struct platform_device *pdev)
2355{ 2355{
2356 struct mci_platform_data *pdata; 2356 struct mci_platform_data *pdata;
2357 struct atmel_mci *host; 2357 struct atmel_mci *host;
@@ -2502,7 +2502,7 @@ err_init_slot:
2502 return ret; 2502 return ret;
2503} 2503}
2504 2504
2505static int __exit atmci_remove(struct platform_device *pdev) 2505static int atmci_remove(struct platform_device *pdev)
2506{ 2506{
2507 struct atmel_mci *host = platform_get_drvdata(pdev); 2507 struct atmel_mci *host = platform_get_drvdata(pdev);
2508 unsigned int i; 2508 unsigned int i;
@@ -2565,7 +2565,7 @@ static const struct dev_pm_ops atmci_dev_pm_ops = {
2565}; 2565};
2566 2566
2567static struct platform_driver atmci_driver = { 2567static struct platform_driver atmci_driver = {
2568 .remove = __exit_p(atmci_remove), 2568 .remove = atmci_remove,
2569 .driver = { 2569 .driver = {
2570 .name = "atmel_mci", 2570 .name = "atmel_mci",
2571 .of_match_table = of_match_ptr(atmci_dt_ids), 2571 .of_match_table = of_match_ptr(atmci_dt_ids),