Skip to content

Commit

Permalink
mmc: pxamci compilation fix
Browse files Browse the repository at this point in the history
since commit fcaf71f
struct mmc_host does not have a dev field. Retrieve the device with
mmc_dev() instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Sascha Hauer authored and Pierre Ossman committed Dec 5, 2006
1 parent e624386 commit 9e86619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mmc/pxamci.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ static int pxamci_get_ro(struct mmc_host *mmc)
struct pxamci_host *host = mmc_priv(mmc);

if (host->pdata && host->pdata->get_ro)
return host->pdata->get_ro(mmc->dev);
return host->pdata->get_ro(mmc_dev(mmc));
/* Host doesn't support read only detection so assume writeable */
return 0;
}
Expand Down Expand Up @@ -383,7 +383,7 @@ static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
host->power_mode = ios->power_mode;

if (host->pdata && host->pdata->setpower)
host->pdata->setpower(mmc->dev, ios->vdd);
host->pdata->setpower(mmc_dev(mmc), ios->vdd);

if (ios->power_mode == MMC_POWER_ON)
host->cmdat |= CMDAT_INIT;
Expand Down

0 comments on commit 9e86619

Please sign in to comment.