]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: sh_mmcif: Move away from using deprecated APIs
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 26 Sep 2013 08:19:09 +0000 (10:19 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 31 Oct 2013 00:28:34 +0000 (20:28 -0400)
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>
drivers/mmc/host/sh_mmcif.c

index 36629a024aa1350e6278237f42a6d92e97b33807..6bffebe6f57a8137cda12f37733e712bea968993 100644 (file)
@@ -1542,19 +1542,15 @@ static int sh_mmcif_remove(struct platform_device *pdev)
 static int sh_mmcif_suspend(struct device *dev)
 {
        struct sh_mmcif_host *host = dev_get_drvdata(dev);
-       int ret = mmc_suspend_host(host->mmc);
 
-       if (!ret)
-               sh_mmcif_writel(host->addr, MMCIF_CE_INT_MASK, MASK_ALL);
+       sh_mmcif_writel(host->addr, MMCIF_CE_INT_MASK, MASK_ALL);
 
-       return ret;
+       return 0;
 }
 
 static int sh_mmcif_resume(struct device *dev)
 {
-       struct sh_mmcif_host *host = dev_get_drvdata(dev);
-
-       return mmc_resume_host(host->mmc);
+       return 0;
 }
 #else
 #define sh_mmcif_suspend       NULL