diff options
| author | Ulf Hansson <ulf.hansson@linaro.org> | 2013-09-26 04:19:09 -0400 |
|---|---|---|
| committer | Chris Ball <cjb@laptop.org> | 2013-10-30 20:28:34 -0400 |
| commit | cb3ca1aed991cd67ae76aec682e63633a7bead5b (patch) | |
| tree | 64f45d1b6073632cc066801a080f72b473b92f81 | |
| parent | b2822d372560dfffd730b974b73d77b210a71ffa (diff) | |
mmc: sh_mmcif: Move away from using deprecated APIs
Suspend and resume of cards are being handled from the protocol layer
and consequently the mmc_suspend|resume_host APIs are deprecated.
This means we can simplify the suspend|resume callbacks by removing the
use of the deprecated APIs.
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
| -rw-r--r-- | drivers/mmc/host/sh_mmcif.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 36629a024aa1..6bffebe6f57a 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c | |||
| @@ -1542,19 +1542,15 @@ static int sh_mmcif_remove(struct platform_device *pdev) | |||
| 1542 | static int sh_mmcif_suspend(struct device *dev) | 1542 | static int sh_mmcif_suspend(struct device *dev) |
| 1543 | { | 1543 | { |
| 1544 | struct sh_mmcif_host *host = dev_get_drvdata(dev); | 1544 | struct sh_mmcif_host *host = dev_get_drvdata(dev); |
| 1545 | int ret = mmc_suspend_host(host->mmc); | ||
| 1546 | 1545 | ||
| 1547 | if (!ret) | 1546 | sh_mmcif_writel(host->addr, MMCIF_CE_INT_MASK, MASK_ALL); |
| 1548 | sh_mmcif_writel(host->addr, MMCIF_CE_INT_MASK, MASK_ALL); | ||
| 1549 | 1547 | ||
| 1550 | return ret; | 1548 | return 0; |
| 1551 | } | 1549 | } |
| 1552 | 1550 | ||
| 1553 | static int sh_mmcif_resume(struct device *dev) | 1551 | static int sh_mmcif_resume(struct device *dev) |
| 1554 | { | 1552 | { |
| 1555 | struct sh_mmcif_host *host = dev_get_drvdata(dev); | 1553 | return 0; |
| 1556 | |||
| 1557 | return mmc_resume_host(host->mmc); | ||
| 1558 | } | 1554 | } |
| 1559 | #else | 1555 | #else |
| 1560 | #define sh_mmcif_suspend NULL | 1556 | #define sh_mmcif_suspend NULL |
