Skip to content

Commit

Permalink
mmc: msm_sdcc: Use platform_set|get_drvdata
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ulf Hansson committed Nov 10, 2014
1 parent 6685ac6 commit eaaceb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/mmc/host/msm_sdcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ msmsdcc_probe(struct platform_device *pdev)
if (ret)
goto cmd_irq_free;

mmc_set_drvdata(pdev, mmc);
platform_set_drvdata(pdev, mmc);
mmc_add_host(mmc);

pr_info("%s: Qualcomm MSM SDCC at 0x%016llx irq %d,%d dma %d\n",
Expand Down Expand Up @@ -1419,7 +1419,7 @@ msmsdcc_probe(struct platform_device *pdev)
static int
msmsdcc_suspend(struct platform_device *dev, pm_message_t state)
{
struct mmc_host *mmc = mmc_get_drvdata(dev);
struct mmc_host *mmc = platform_get_drvdata(dev);

if (mmc) {
struct msmsdcc_host *host = mmc_priv(mmc);
Expand All @@ -1437,7 +1437,7 @@ msmsdcc_suspend(struct platform_device *dev, pm_message_t state)
static int
msmsdcc_resume(struct platform_device *dev)
{
struct mmc_host *mmc = mmc_get_drvdata(dev);
struct mmc_host *mmc = platform_get_drvdata(dev);

if (mmc) {
struct msmsdcc_host *host = mmc_priv(mmc);
Expand Down

0 comments on commit eaaceb6

Please sign in to comment.