summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/omap_hsmmc.c
diff options
context:
space:
mode:
authorAndreas Fenkart <afenkart@gmail.com>2015-07-07 20:38:44 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2015-08-17 11:32:46 +0200
commit4c06654c47ee2ff5308b7e89994225ff81b48ef2 (patch)
tree116e00fc7898dd7c6af81cb5dba8555b5b21ccc3 /drivers/mmc/host/omap_hsmmc.c
parentf7f0f03506d00fc2939a8625ed141c2dda568fad (diff)
mmc: omap_hsmmc: regulator automatically released by devm
Signed-off-by: Andreas Fenkart <afenkart@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/omap_hsmmc.c')
-rw-r--r--drivers/mmc/host/omap_hsmmc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 1fad7c746bc3..19ae7e693526 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -394,12 +394,6 @@ static int omap_hsmmc_reg_get(struct omap_hsmmc_host *host)
return 0;
}
-static void omap_hsmmc_reg_put(struct omap_hsmmc_host *host)
-{
- if (mmc_pdata(host)->set_power)
- return;
-}
-
static inline int omap_hsmmc_have_reg(void)
{
return 1;
@@ -417,10 +411,6 @@ static inline int omap_hsmmc_reg_get(struct omap_hsmmc_host *host)
return -EINVAL;
}
-static inline void omap_hsmmc_reg_put(struct omap_hsmmc_host *host)
-{
-}
-
static inline int omap_hsmmc_have_reg(void)
{
return 0;
@@ -2134,7 +2124,6 @@ static int omap_hsmmc_probe(struct platform_device *pdev)
err_slot_name:
mmc_remove_host(mmc);
- omap_hsmmc_reg_put(host);
err_irq:
device_init_wakeup(&pdev->dev, false);
if (host->tx_chan)
@@ -2158,7 +2147,6 @@ static int omap_hsmmc_remove(struct platform_device *pdev)
pm_runtime_get_sync(host->dev);
mmc_remove_host(host->mmc);
- omap_hsmmc_reg_put(host);
if (host->tx_chan)
dma_release_channel(host->tx_chan);