aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2014-10-06 08:08:09 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2014-11-10 06:40:34 -0500
commiteaaceb6cbf7ef6f480b3f80468beb21eafe82ac0 (patch)
tree9e3466d710a34d362891beabc9da89be1aabdc62
parent6685ac62b2f08fcff77dc35c6b8bff1b74aaa408 (diff)
mmc: msm_sdcc: Use platform_set|get_drvdata
The msm_sdcc host shall not use mmc core specific macros to handle its driver data. Instead, convert to use the platform device driver macros. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/msm_sdcc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c
index 9405ecdaf6cf..90c60fd4ff6e 100644
--- a/drivers/mmc/host/msm_sdcc.c
+++ b/drivers/mmc/host/msm_sdcc.c
@@ -1360,7 +1360,7 @@ msmsdcc_probe(struct platform_device *pdev)
1360 if (ret) 1360 if (ret)
1361 goto cmd_irq_free; 1361 goto cmd_irq_free;
1362 1362
1363 mmc_set_drvdata(pdev, mmc); 1363 platform_set_drvdata(pdev, mmc);
1364 mmc_add_host(mmc); 1364 mmc_add_host(mmc);
1365 1365
1366 pr_info("%s: Qualcomm MSM SDCC at 0x%016llx irq %d,%d dma %d\n", 1366 pr_info("%s: Qualcomm MSM SDCC at 0x%016llx irq %d,%d dma %d\n",
@@ -1419,7 +1419,7 @@ ioremap_free:
1419static int 1419static int
1420msmsdcc_suspend(struct platform_device *dev, pm_message_t state) 1420msmsdcc_suspend(struct platform_device *dev, pm_message_t state)
1421{ 1421{
1422 struct mmc_host *mmc = mmc_get_drvdata(dev); 1422 struct mmc_host *mmc = platform_get_drvdata(dev);
1423 1423
1424 if (mmc) { 1424 if (mmc) {
1425 struct msmsdcc_host *host = mmc_priv(mmc); 1425 struct msmsdcc_host *host = mmc_priv(mmc);
@@ -1437,7 +1437,7 @@ msmsdcc_suspend(struct platform_device *dev, pm_message_t state)
1437static int 1437static int
1438msmsdcc_resume(struct platform_device *dev) 1438msmsdcc_resume(struct platform_device *dev)
1439{ 1439{
1440 struct mmc_host *mmc = mmc_get_drvdata(dev); 1440 struct mmc_host *mmc = platform_get_drvdata(dev);
1441 1441
1442 if (mmc) { 1442 if (mmc) {
1443 struct msmsdcc_host *host = mmc_priv(mmc); 1443 struct msmsdcc_host *host = mmc_priv(mmc);